3 ms·
I just don’t get it. Their last paragraph describes how they changed their dynamic site to be static. So then why do you need workers at all? Just deploy to a C
by pyrolistical 10mo ago
I just don’t get it. Their last paragraph describes how they changed their dynamic site to be static. So then why do you need workers at all? Just deploy to a CDN.
How do you do version updates? Add content hash to all files except for root index.html.
Cache everything forever, except for index.html
To deploy new version upload all files, making sure index.html is last.
Since all files are unique, old version continues to be served.
No cache invalidating required since all files have unique paths, expect index.html which was never cached.
You have to ensure you absolutely have properly content hashes for everything. Images, css, js. Everything
- Borealid 10mo agoWhat happens in the event of a hash collision?
- pyrolistical 10mo agoHave the deploy fail and dont update index.html, users stay in current version. For example cloudfront with s3, you use If-None-Match when uploading to ensure deploy fails on conflict
- immibis 10mo agoYou win a million dollar prize in cryptography.