• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 112

  • 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 25th 2021
RT @PeterStefanovi2: Still here @BBCNews @bbclaurak

Whilst you’ve been looking the other way 12 million views & six Opposition party leade…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 23rd 2021 replying to this from @mattb
@mattb 🤯
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 15th 2021 replying to this from @swyx
@swyx @Netlify Yes it uses serverless but is more than my simple fallback example which just returned a view. DPR also then persists that view as part of the deploy. So things like republishing deploys is possible. Maybe we need to make the logical/practical differences more clear in the RFC.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 14th 2021 replying to this from @swyx
@swyx @Netlify :) The Vlolly idea was a bit different. It used a serverless function to do a render if a view was missing, and also did incremental builds thanks to the build cache.

DPR is a far simpler model which adds to a deploy’s assets in the CDN over time as views are first requested. ✨
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 14th 2021
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
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 11th 2021 replying to this from @frontstuff_io
@frontstuff_io @VueToronto @bencodezen @JakeDohm @MariaLamardo @DevlinDuldulao @MichaelThiessen @hootlex @MayaShavin @filrakowski @posva @debs_obrien @AdamJahr @amirrustam @zeroskillz @IsraelOrtuno @jilsonthomas This was a good time 😍
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 11th 2021 replying to this from @auth0
@auth0 Just
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 9th 2021 replying to this from @jesslynnrose
@jesslynnrose ...and we appreciate it!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 9th 2021 replying to this from @rickhanlonii
@rickhanlonii @sarah_edo Well it’s about flipping time!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 8th 2021 replying to this from @ryanflorence
@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.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 8th 2021 replying to this from @mjackson
@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/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 7th 2021 replying to this from @amber1ey
@amber1ey @MelanieCrissey @jlengstorf Rule number 1:

Get.
Their.
Attention.
  • Permalink
  • |
  • Twitter
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
  • 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.