Agree, that there are more tempered ways to start the discussion.
-
-
Rich is fine - he can call me out anytime I need it. Sorry I missed that tweet Rich. The missing piece is gaining access to the webpack (or Rollup) bundle hash info that’s generated at build time. Need something integrated with the bundler
2 replies 0 retweets 0 likes -
What's the point of hashing bundle names anyways? Is it caching b/c there's headers for that...
1 reply 0 retweets 0 likes -
Caching, yes. No way I’d ever trust the voodoo that is http headers to get that perfect. (and it needs to be perfect) I’ve seen smarter men than me struggle with it
2 replies 0 retweets 0 likes -
With a hash you can say 'this asset will never change, you don't even need to check for a 304'
1 reply 0 retweets 2 likes -
But you also have no idea what your file names are have to do weird things like editing HTML files.... I just let AWS know when a file changes and it busts the cache for me but
1 reply 0 retweets 0 likes -
Yeah - that is indeed the trade off. If you’ve got your cache headers working right then sure - you’re all set
1 reply 0 retweets 1 like -
AWS has my headers right, I don't deal with that minutia
1 reply 0 retweets 2 likes -
Right, but now the browser has to check that its cache is still valid each time
1 reply 0 retweets 2 likes -
Latency on CDNs is typically <50ms
2 replies 0 retweets 0 likes
Plus connection setup, which can be > 1000ms (depending on how you configured), plus lack of parallelism (everything stacks against those invalidation requests if they are for blocking resources).
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.