chilik.doriva
New member
- Joined
- May 5, 2010
- Messages
- 2
Hi everybody,
I'm trying to modify the .htaccess file to have expiration dates in my headers, the .htaccess file is inside the cgi-bin directory and I'm adding this to it:
#####################################################
# CONFIGURE media caching
#
Header unset ETag
FileETag None
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$">
Header unset Last-Modified
Header set Expires "access plus 180 days"
Header set Cache-Control "public, no-transform"
</FilesMatch>
#
#####################################################
or this:
Options -Indexes
# enable expirations
ExpiresActive On
# Set default expiry to one month after last access
#ExpiresDefault "access plus 30 days"
# Set expiry for file types to 14 days
ExpiresByType text/css "access plus 60 days"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/jpg "access plus 30 days"
 But nothing seems to change according to speed tool of fire bug.
 But nothing seems to change according to speed tool of fire bug.
I even tried to move the file to the public_html directory, but than I got a 500 error page when I typed my url without the /index.html
Can you Please Help on this?
Chilik
				
			I'm trying to modify the .htaccess file to have expiration dates in my headers, the .htaccess file is inside the cgi-bin directory and I'm adding this to it:
#####################################################
# CONFIGURE media caching
#
Header unset ETag
FileETag None
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$">
Header unset Last-Modified
Header set Expires "access plus 180 days"
Header set Cache-Control "public, no-transform"
</FilesMatch>
#
#####################################################
or this:
Options -Indexes
# enable expirations
ExpiresActive On
# Set default expiry to one month after last access
#ExpiresDefault "access plus 30 days"
# Set expiry for file types to 14 days
ExpiresByType text/css "access plus 60 days"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/jpg "access plus 30 days"
 But nothing seems to change according to speed tool of fire bug.
 But nothing seems to change according to speed tool of fire bug.I even tried to move the file to the public_html directory, but than I got a 500 error page when I typed my url without the /index.html
Can you Please Help on this?
Chilik
