<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/gif "access plus 518400 seconds"
ExpiresByType image/jpeg "access plus 518400 seconds"
ExpiresByType image/png "access plus 518400 seconds"
ExpiresByType text/css "access plus 518400 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifmodule>
<ifmodule mod_headers.c>
# Cache specified files for 6 days
<filesmatch ".(ico|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Cache-Control "max-age=518400, public"
</filesmatch>
# Cache Javascripts for 5 days
<filesmatch ".(js)$">
Header set Cache-Control "max-age=432000, private"
</filesmatch>
</ifmodule>
# DEFAULT SETTINGS
##############################################
RewriteEngine On
RewriteCond %{HTTP_HOST} ^phpfusionmods.com$
RewriteRule (.*) http://www.phpfusionmods.com/$1 [R=301,L]
### DEFAULTS ###
ServerSignature Off
AddType video/x-flv .flv
AddType application/x-shockwave-flash .swf
AddType image/x-icon .ico
AddDefaultCharset iso-8859-1
DefaultLanguage en-US
SetEnv TZ America/Indianapolis
SetEnv SERVER_ADMIN netrix@phpfusionmods.com
SetOutputFilter DEFLATE
# HEADERS and CACHING
##############################################
#### CACHING ####
# YEAR
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
# WEEK
<FilesMatch ".(js|css|pdf|swf)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
# 10 minutes
<FilesMatch ".(html|htm|txt)$">
Header set Cache-Control "max-age=600"
</FilesMatch>
# DONT CACHE
<FilesMatch ".(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>
zlib.output_compression = On
Category Forum
Panels and InfusionsLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions