Professional Documents
Culture Documents
Sample Configuration of Mod Cache On Apache
Sample Configuration of Mod Cache On Apache
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>