vothanhliem/badt/master/Tests/.htaccess - Htaccess File

vothanhliem/badt/master/Tests/.htaccess

# Cache Certain file types, saving bandwidth and decreasing load times

# 1 YEAR
<FilesMatch ".(ico|pdf)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>

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

# 2 DAYS
<FilesMatch ".(xml|txt|html|php)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
php_flag display_errors off

On Github License

Files

Download PDF of Htaccess file

Comments

Apache