: How can I instruct the browser to cache .jpg files using .htaccess? In my root folder .htaccess file, I have stated: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1
In my root folder .htaccess file, I have stated:
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 year"
</IfModule>
However, two separate web-based analysis programs are telling me that .jpg files on various pages are not being cached at all.
Have I made a syntax error?
Should I be writing:
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
More posts by @Alves908
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.