You are on page 1of 1

### debian section ### LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so LoadModule cache_module /usr/lib/apache2/modules/mod_cache.

so ### centos section ### #LoadModule headers_module modules/mod_headers.so #LoadModule cache_module modules/mod_cache.so SetEnvIf Request_URI \.(?:gif|jpeg|jpe|jpg|png|ico|t?gz|zip|rar|pdf|doc|xls|dat) $ caching-file Header set control-cache no-cache env=!caching-file Header merge control-cache no-store env=!caching-file Header merge control-cache must-revalidate env=!caching-file Header unset Set-Cookie <filesMatch "\.(jpg|jpeg|png|gif|swf|css|js|ico|zip|t?gz|tgz|pdf|doc|xls|dat|jpe )$"> Header set Cache-Control "max-age=86400, public" </filesMatch>

You might also like