• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 1067

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @mjackson
@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/)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @sarah_edo
@sarah_edo @jaffathecake @csswizardry @bdc Pip pip * wobbly salute*
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@jaffathecake @csswizardry @bdc @sarah_edo Right
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@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?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@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?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@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.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@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/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@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.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @jaffathecake
@jaffathecake @csswizardry @bdc @sarah_edo What would be your preferred best default behaviour for all use cases?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @philhawksworth
@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/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @philhawksworth
@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)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @mjackson
@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
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @levlinds
@levlinds Buckle up for some epic synergexperiences.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 6th 2021 replying to this from @philhawksworth
@kelseyhightower @mikesherov @mjackson @steren ...and as for @Netlify being "bad at caching", the Jamstack model allows us to apply default cache-busting behaviours which are perfect for the vast majority of use cases, but you have granular control over caching if you need it and know how to wield it.

https://docs.netlify.com/routing/headers/#multi-value-headers
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 6th 2021 replying to this from @philhawksworth
@kelseyhightower @mikesherov @mjackson @steren Meanwhile an important misunderstanding to clear up is Michael's comment that Jamstack is bad for caching strategies. The opposite is in fact true. When the UI can be atomically pre-generated, it enables very sensible strategies.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 6th 2021 replying to this from @kelseyhightower
@kelseyhightower @mikesherov @mjackson @steren Yeah there is some helpful feedback there. Keen to refine the messaging to make it more clear and helpful.
The efforts continue!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 4th 2021 replying to this from @seldo
@seldo @H4N4W4LT Woohoo! Huge congratulations! Looks like the perfect day.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @opinionatedpie
@opinionatedpie @vuejs @vite_js @bencodezen "Made" is over stating it. I had previously stocked up thanks to @Tzmanics encouragement.

https://www.the-teashed.co.uk/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @bencodezen
@bencodezen @vuejs @vite_js Close! Mango with strawberry bubbles.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021
I came to learn about ⁦@vuejs⁩ and ⁦@vite_js⁩ from ⁦@bencodezen⁩ but his examples triggered me to making bubble tea and ordering ramen.

Not the worst.
Embedded image from social media
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @benpbarnett
@benpbarnett Not you.
You taught me all the wrong things.
Back in your box
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021
I basically want Ben to teach me everything https://twitter.com/bencodezen/status/1377681669092732928
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @atelierschork
@atelierschork @engineering_bae @kmelve ❤️
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @zachleat
@zachleat @sarah_edo @kenny_io @PaulieScanlon @Netlify @cassidoo I approve this message.
(if not the leading)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2021 replying to this from @miliardopiscrat
@miliardopiscrat @bencodezen @cassidoo Psst I think muddling up @Shopify and @Spotify is the source of bigger problems 😘
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.