Current time: 10-28-2020, 06:44 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What happens if original file is updated when using Cloudfront?
04-10-2013, 02:34 AM
Post: #2
RE: What happens if original file is updated when using Cloudfront?
It depends on your caching headers. Cloudfront will honor your expires and cache-control headers and it's really only effective if the content is cacheable so you will probably need to purge the cache. That said, if you are updating files that require a cache purge then you may not be doing it right because your end user's browsers will also be caching the content and you have no way to force a purge there. Usually you want to be in a position where you are changing the file URL every time the file is changed so it will look like a new file to all of the caches but it can still be cached for a long time.

I do it on WebPagetest by adding a ?v=1234 (some incrementing number for the version) to the end of my files when I change them but you need to modify the HTML or css that references them (and a query string isn't the best way to do it but it's generally easy and transparent).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: What happens if original file is updated when using Cloudfront? - pmeenan - 04-10-2013 02:34 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)