Skip to main content

Expires header are not updated

Comments

5 comments

  • cPanelLauren
    Hello, I don't see that you've set the Expires headers in here. The documentation on the expires_module provides some further information on use and examples of syntax here" mod_expires - Apache HTTP Server Version 2.4
    0
  • kadrin
    Set expire header with the mod_expires ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month"
    0
  • Nirjonadda
    I don't see that you've set the Expires headers in here.

    Yes before we have this code below but now removed for Expires header update instantly with current date. If we are not added any expires_module code in .htaccess then how this showing this date Expires: Thu, 19 Nov 1981? and where this date used? ## EXPIRES CACHING/CACHE-CONTROL ## ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType text/html "access plus 3 days" ExpiresByType text/xml "access plus 1 seconds" ExpiresByType text/plain "access plus 1 seconds" ExpiresByType application/xml "access plus 1 seconds" ExpiresByType application/rss+xml "access plus 1 seconds" ExpiresByType application/json "access plus 1 seconds" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-ico "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType application/pdf "access plus 1 month" Header unset ETag Header unset Pragma Header unset Last-Modified Header append Cache-Control "public, no-transform, must-revalidate" #Header set Last-modified "Tue, 1 Oct 2018 10:10:10 GMT" ## EXPIRES CACHING/CACHE-CONTROL ##
    0
  • quietFinn
    Yes before we have this code below but now removed for Expires header update instantly with current date. If we are not added any expires_module code in .htaccess then how this showing this date Expires: Thu, 19 Nov 1981? and where this date used?

    See here:
    0
  • kadrin
    Browser caching look for Expires date
    0

Please sign in to leave a comment.