Forum Moderators: phranque

Message Too Old, No Replies

pragma/ cache control of mp3 files

         

adanker

8:06 pm on Feb 23, 2004 (gmt 0)



I am receiving a 500 error when I use the following in a .htaccess file at the root of this directory.

# Set up cache Control 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 frequently-updated files
<FilesMatch "^(testŠeval)\.html$">
ExpiresDefault A1
Header unset cache-Control:
Header append cache-Control: "no-cache, must-revalidate"
</FilesMatch>
</FilesMatch>
<FilesMatch "^robots\.txt$">
ExpiresDefault A7200
</FilesMatch>

error message I receive...
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@pixelphish.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thank You
Aaron Danker

jdMorgan

11:02 pm on Feb 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are two </FilesMatch> directives in a row in that code.

It also seems that you have an ErrorDocument defined, but it does not exist -- See your ErrorDocument directive, and make sure the specified file exists at the location given.

Jim