• ipave

    (@ipave)


    Hello

    I’m trying to modify my cache headers with .htaccess. For some reason, my settings don’t seem to work with jpg images, but work with other files (according to Webkit’s web inspector). Here’s what my cache settings look like:

    # CACHE CONTROL
    Header unset ETag
    FileETag None
    
    <FilesMatch "\.(ico|jpg|jpeg|png|gif)$">
    Header set Cache-Control "max-age=290304000, public"
    </FilesMatch>
    
    <FilesMatch "\.(css|js)$">
    Header set Cache-Control "max-age=86400, public"
    </FilesMatch>
  • The topic ‘Expires headers not working with jpg images’ is closed to new replies.