adam-singer / dart-carte-du-jour

Pub documentation generation system
www.dartdocs.org
Other
25 stars 8 forks source link

cache configuration for cloud storage #9

Closed adam-singer closed 10 years ago

adam-singer commented 10 years ago

Cache can be controlled from https://developers.google.com/storage/docs/gsutil/commands/setmeta

adam-singer commented 10 years ago

gsutil help metadata

gsutil -h "Cache-Control:public,max-age=3600" cp -a public-read \
           -r html gs://bucket/html

Add the Cache-Control:public,max-age=3600 header when uploading to cloud storage.

adam-singer commented 10 years ago

Moving to https://github.com/financeCoding/dart-carte-du-jour/issues/37

adam-singer commented 10 years ago

cache control quick reference http://www.askapache.com/hacking/speed-site-caching-cache-control.html#htaccess_time_cheatsheet

3600   1 HR
604800   1 WEEK
4838400   2 MONTH
29030400  12 MONTH