hatch-sh / hatch

🐣 Easy deployment of static websites to Amazon Web Services
https://hatch.sh
5 stars 0 forks source link

Caching #31

Open mads-hartmann opened 7 years ago

mads-hartmann commented 7 years ago

We need to figure out how caching should work:

mads-hartmann commented 7 years ago

It seems that if we enable versioning for the buckets we get some nice cache invalidation for free. http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#Invalidation_Expiration

mads-hartmann commented 7 years ago

https://docs.aws.amazon.com/AmazonS3/latest/user-guide/enable-versioning.html

skovhus commented 7 years ago

I've implemented same caching as https://surge.sh/help/using-lucid-caching-automatically ... And think that is fine right now. : )