AMVPh34r/AMV_Ph34r/master/.htaccess - Htaccess File

AMVPh34r/AMV_Ph34r/master/.htaccess

##
# URL Rewriting
##
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index.php|img|css|js|fonts)
RewriteRule ^(.*)$ /index.php?q=$1 [L]

##
# Browser caching
##
# 1 year
<FilesMatch ".(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>

# 1 week
<FilesMatch ".(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>

# 3 hours
<FilesMatch ".(txt|xml|js|css)$">
Header set Cache-Control "max-age=10800"
</FilesMatch>

# Never cache
<FilesMatch ".(html|htm|php|cgi|pl)$">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
no-cache

Comments

Apache