RT @PeterStefanovi2: Still here @BBCNews @bbclaurak
Whilst you’ve been looking the other way 12 million views & six Opposition party leade…



Phil Hawksworth
@philhawksworth •
Excited by the possibilities of DPR (and the fact that I’m able to understand what is happening here and what the state of my sites will be) https://twitter.com/Netlify/status/1382374405276372992


@jesslynnrose ...and we appreciate it!

@rickhanlonii @sarah_edo Well it’s about flipping time!

@ryanflorence @mjackson @brianleroux @jaffathecake @kelseyhightower @mikesherov @steren @Netlify @remix_run We’re not clearing assets from the CDN. They stay in perpetuity. The deploys are immutable though so that you can have instant rollbacks etc.
I’m just keen to clarify that this is possible if desired.
I’m just keen to clarify that this is possible if desired.

@mjackson @brianleroux @jaffathecake @kelseyhightower @mikesherov @steren @Netlify @remix_run Heh! You mean 2 people discussed technology approaches via twitter and some misunderstanding crept in? Shocker! :)
I noodled on ways to give access to versioned assets in perpetuity while not sacrificing immutable atomic builds. Keen to get your thoughts
https://test-fingerprint.netlify.app/
I noodled on ways to give access to versioned assets in perpetuity while not sacrificing immutable atomic builds. Keen to get your thoughts
https://test-fingerprint.netlify.app/

@mjackson @brianleroux @jaffathecake @kelseyhightower @mikesherov @steren @Netlify @remix_run Aha! I see the challenge you are referring too! I was a bit thrown by "it’s impossible to cache HTML"
Since every deploy persists forever on a unique URL I bet there is an approach to address this. I'll noodle on it.
(here's my blog as it was in 2016 https://57b8db8dd6865d5bcf4684db--hawksworx.netlify.app/)
Since every deploy persists forever on a unique URL I bet there is an approach to address this. I'll noodle on it.
(here's my blog as it was in 2016 https://57b8db8dd6865d5bcf4684db--hawksworx.netlify.app/)

@jaffathecake @csswizardry @bdc @sarah_edo Gotcha. Comms aside, do you have what you need via the _headers config in @Netlify which allows you to control the cache behaviour on given paths to get the behaviour you'd prefer on some projects?
If so, I can talk comms here.
If not, could you help me understand the gaps?
If so, I can talk comms here.
If not, could you help me understand the gaps?

@jaffathecake @csswizardry @bdc @sarah_edo As in, for very many small assets it gets expensive relatively speaking since the browser checks to see if it can used its cached version for lots and lots of items and that overhead mounts up?

@jaffathecake @csswizardry @bdc @sarah_edo I full second! Oh, I admit to being surprised at that level of overhead for the 304s which should be very fast. I need to explore that example more.

@jaffathecake @csswizardry @bdc @sarah_edo Aha. So this is mostly a communication thing? That's most helpful feedback. Things have certainly moved on since that 2015 blog post. Even this one back in 2017 offers a bit more info on our defaults and I doubt we'd still say "more assets is best"
https://www.netlify.com/blog/2017/02/23/better-living-through-caching/
https://www.netlify.com/blog/2017/02/23/better-living-through-caching/

@jaffathecake @csswizardry @bdc @sarah_edo Gotcha!
I'm not Captain Cache Config but I've lived through enough cache horrors to want good defaults that deliver high confidence and good performance. Equally, for those with the wisdom to take on full config of their caches, I'd like to learn what primitives that needs.
I'm not Captain Cache Config but I've lived through enough cache horrors to want good defaults that deliver high confidence and good performance. Equally, for those with the wisdom to take on full config of their caches, I'd like to learn what primitives that needs.

@jaffathecake @csswizardry @bdc @sarah_edo What would be your preferred best default behaviour for all use cases?

@mjackson @kelseyhightower @mikesherov @steren @Netlify You can get a few more details about how browsers re-use previously cached assets from the @Netlify CDN, and how this is configurable if you want, from this post on the Netlify blog:
https://www.netlify.com/blog/2017/02/23/better-living-through-caching/
https://www.netlify.com/blog/2017/02/23/better-living-through-caching/

@mjackson @kelseyhightower @mikesherov @steren @Netlify (this is technically what Netlify does behind the scenes when a deploy includes unchanged assets)
We don't purge assets from the CDN, we direct traffic to ensure latest assets are served and keeps your deploys atomic. (But you can tell browsers to cache as you like)
We don't purge assets from the CDN, we direct traffic to ensure latest assets are served and keeps your deploys atomic. (But you can tell browsers to cache as you like)

@mjackson @kelseyhightower @mikesherov @steren @Netlify You can set the headers to tell browsers to cache assets, including html (found on any paths you specify) for whatever period you like. It sounds like you want to not have atomic deploys so that you can mix updated assets with previous assets on the CDN

@levlinds Buckle up for some epic synergexperiences.