Apache 2.2 Browser-Caching

If you want to enable the browser cache with the new Apache 2.2, you have to enable the module rewrite first and then to restart the Apache:

Add this to the File “/etc/apache2/apache2.conf” :

This is an example config, for images I choose 2,CSS 1day and for JavaScript 2 Hours from the last access.

Leave a Reply

Your email address will not be published.

three × 2 =