This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
quochuy16611
Hi,
All my pages are returning the header Cache-Control: no-cache How can I configure this?
Thanks
inetis
You can modify .htaccess to do it. more info here : https://varvys.com/pagespeed/cache-control.html
here is an example of configuration
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType text/css "access plus 31536000 seconds"
ExpiresByType text/javascript "access plus 31536000 seconds"
ExpiresByType application/javascript "access plus 31536000 seconds"
ExpiresByType application/x-javascript "access plus 31536000 seconds"
ExpiresByType image/ico "access plus 31536000 seconds"
ExpiresByType image/gif "access plus 31536000 seconds"
ExpiresByType image/jpg "access plus 31536000 seconds"
ExpiresByType image/jpeg "access plus 31536000 seconds"
ExpiresByType image/png "access plus 31536000 seconds"
ExpiresByType image/bmp "access plus 31536000 seconds"
</ifModule>
Last updated
1-5 of 5