Mobile app version of vmapp.org
Login or Join
Alves908

: 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

@Alves908

Posted in: #CacheControl #Htaccess #HttpHeaders #Jpeg

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"

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme