Page 1 of 1

Adding a far future 'Expires' Header

PostPosted: 10. June 2009 16:56
by smokinguns
Hey all,
Im want to add the Expires HTTP header for image and css files. This is the syntax:
Code: Select all
ExpiresActive On                  # enable expirations
ExpiresByType image/gif A2592000  # expire GIF images after a month

Where do I add these lines in the httpd.conf file? Can I just paste these two lines anywhere? Is there way I can make these changes applicable to a particular site ?