I've been trying to implement Cache-Control mainly because it's good practice but also because I'm trying to improve my understanding of it. The code I'm using in my htaccess is this:
<IfModule mod_expires.c> # Activate mod_expires for this directory ExpiresActive on # locally cache common image types for 7 days ExpiresByType image/jpg "access plus 7 days" ExpiresByType image/jpeg "access plus 7 days" ExpiresByType image/gif "access plus 7 days" ExpiresByType image/png "access plus 7 days" # cache CSS files for 24 hours ExpiresByType text/css "access plus 24 hours" </IfModule>
which I found on my hosts support pages as their suggested way to do things. After implementing it I ran a pagespeed test and this tells me I'm not caching content and the headers, which I checked with another tool reflected this, showing no-cache. At this point I did some further research on the code itself and it seems legit and should in theory work. Does anyone have any ideas why it's not being picked up?