Timestamping CSS Caching

Viewing 2 posts - 1 through 2 (of 2 total)
  • #5582
    mattdmin
    Participant

    I would like to time stamp my CSS Caching to anyone viewing for the time being, any idea how this would be done with the Esplanade theme?

    #5584
    Daniel Tara
    Keymaster

    If you’re using Apache make sure you have mod_expires installed and add this to your .htaccess file:

    <IfModule mod_expires.c>
    ExpiresByType text/css M31536000
    </IfModule>

    Replace the number with how manu seconds you want the file to be cached.

    Recommend also setting these two:

    Header set Pragma "public"
    Header set Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate"
    • This reply was modified 12 years, 5 months ago by Daniel Tara.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.