Add caching hint to readme

This commit is contained in:
Thomas Jensen 2018-06-20 18:29:05 +02:00
parent 52a23b9ee2
commit 831f6cf72b
No known key found for this signature in database
GPG Key ID: 54243EF8EA4945B2
1 changed files with 18 additions and 0 deletions

View File

@ -20,6 +20,24 @@ summarizes the links to your social media profiles and external content. It is:
(optional, but these things are helpful to comply with EU data protection laws). (optional, but these things are helpful to comply with EU data protection laws).
You'll need a Google Analytics account, of course, and set it up correctly first. You'll need a Google Analytics account, of course, and set it up correctly first.
## Performance Hint
It is a good idea to increase the cache lifetime of the background image, so that public proxies and users' browsers
do not need to download it every time. GitHub Pages does not support cache control, but if *your* web server supports
`.htaccess` files, you may want to add one to the *images* folder like so:
```ApacheConf
# Cache the large background image for 1 year
<IfModule mod_headers.c>
<Files "background.jpg">
Header unset ETag
Header set Cache-Control "public, max-age=31536000"
</Files>
</IfModule>
```
## License ## License
The *Fuse Core* theme is free to use and modify under the terms of the The *Fuse Core* theme is free to use and modify under the terms of the