Hi, my site is semidynamic, so Im not sure what is cached and what is not.
And as the html/php code itself without the images, .js and css etc
arent big files.
Been trying to read about how to set it up in Apache.
To cache all images, css and .js files etc, and when I change them I will have to rename them, but I dont want to cache any html or php code is it correct to set this in the .htaccess file and with that I dont need to add any no cache or expires code etc in the head section of the pages?
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresActive On
ExpiresDefault "access plus 10 years"
</FilesMatch>
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
Thanks,
Helen