cshc / cshc_website

The main repository for the Cambridge South Hockey Club website source code
3 stars 0 forks source link

Set Cache-Control headers on S3 files #92

Open grahammcculloch opened 11 years ago

grahammcculloch commented 11 years ago

See http://www.labnol.org/internet/lower-amazon-s3-bill-improve-website-loading-time/5193/

Needed to ensure browsers don't download files each time but use a cached version for longer.

grahammcculloch commented 11 years ago

http://amix.dk/blog/post/19687

Also need to modify 'version variable' at end of url for files that get updated.

grahammcculloch commented 7 years ago

Also need to modify 'version variable' at end of url for files that get updated. This is done.

It would prob be worth adding independent version numbers to static files that are linked from templates (e.g. Juniors documents etc) so when they get updated we can just update the version number. Although ideally in the next version of the website we'll have a document management app that handles this kind of thing.

Still worth doing an audit of our settings for S3 files, particularly those that get used a lot.