Skip to content

Commit

Permalink
Updating .htaccess caching options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrwhr committed Jan 29, 2015
1 parent 7d4fbc9 commit 4a37f93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .htaccess
Expand Up @@ -47,3 +47,12 @@ RewriteRule ^about\/?$ "/" [R=301,L]
# Get rid of the www.
RewriteCond %{HTTP_HOST} ^www\.andrew\-hoyer\.com$
RewriteRule ^(.*)$ "http\:\/\/andrew\-hoyer\.com\/$1" [R=301,L]

# enable expirations
ExpiresActive On

# Everything should be cached for at most a day.
ExpiresDefault "access plus 1 day"

# HTML documents are good for a minute
ExpiresByType text/html A60

0 comments on commit 4a37f93

Please sign in to comment.