Configure my web server to set caching headers

If you need my help as a commercial service, you can send me a PM.

Otherwise, provide us with information what have you already done, and what does not work?
 
Can anyone help me to configure my web server to explicitly set caching headers and apply them to all cacheable static resources?

You can do this in the .htaccess file, here is an example of mine. I have an assets folder where I place static resources that should be cached.

PHP:
<IfModule mod_expires.c>
   ExpiresActive on
   ExpiresByType text/css "access plus 1 months"
   ExpiresByType application/x-javascript  "access plus 1 months"
   ExpiresByType application/javascript  "access plus 1 months"
   ExpiresByType image/gif "access plus 1 months"
   ExpiresByType image/ico "access plus 1 months"
   ExpiresByType image/png "access plus 1 months"
   ExpiresByType image/jpg "access plus 1 months"
   ExpiresByType image/jpeg "access plus 1 months"
</IfModule>

You will want to do some google searches to see exactly what is possible, but this should give you something to go on.
 
Back
Top