Forum Moderators: phranque
# Set up Cache Control and Expires headers
ExpiresActive On
# Default - Set http header to expire everything 1 week from last access, set must-revalidate
ExpiresDefault A604800
Header append Cache-Control: "must-revalidate"
#
# Apply a customized Cache-Control header to custom ErrorDocument files
<FilesMatch "^(40[134]¦410)\.html$">
ExpiresDefault A1
Header unset Cache-Control:
Header append Cache-Control: "no-cache, must-revalidate"
</FilesMatch>
#
# Set robots.txt at four hours
<FilesMatch "^robots\.txt">
ExpiresDefault A7200
</FilesMatch>
You could also use ExpiresByType if you only want to control certain filetypes like images.
Jim