Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Note from 9 December 2021

  • Nicolas Hoizey
  • 9 December 2021
  • Cloudflare, WebPerf
  • 5 reactions

I tried to follow @TheRealNooshu advice about #Cloudflare cache configuration for performance on my photography site, but it looks like much of my assets are still not cached:

A low percent of assets are cached

Could it be because the cache TTL is lower than the delay between 2 visits?

5 reactions

2 likes

  1. Matt Hobbs v2.0 💉💉💉 avatar
  2. Chris Weekly avatar

3 replies

  1. Matt Hobbs v2.0 💉💉💉 avatar Matt Hobbs v2.0 💉💉💉
    I think it will likely be the `private` that Cloudinary is adding: csswizardry.com/2019/03/cache-…
    • 9 December 2021, 10:09
    • Source
  2. Sean Roberts avatar Sean Roberts
    Without looking at it, another thing to consider is that cache is by PoP (point of presence) so you need visits within the TTL that hit the same PoP
    • 10 December 2021, 03:17
    • Source
  3. Nicolas Hoizey avatar Nicolas Hoizey
    That's a good point! 👍

    120 seconds is indeed very low.

    However, even with `cache-control: public, max-age=14400` (4 hours cache), I get `cf-cache-status: DYNAMIC`…
    • 10 December 2021, 07:26
    • Source
  • Older: Note from 2 December 2021
  • Newer: Note from 9 December 2021

Related contents with similar topics

  1. screenshot of Introducing Speed Brain: helping web pages load 45% faster

    Cloudflare avatar Cloudflare , Alex Krivit and Suleman Ahmad

    Introducing Speed Brain: helping web pages load 45% faster

    • Nicolas Hoizey
    • 25 September 2024
    • Cloudflare, WebPerf, Speculation Rules
    • 1 reaction

    With the initial release of Speed Brain, we have designed a solution with important side effect prevention guardrails that completely removes the…

  2. Note from 20 June 2023

    • Nicolas Hoizey
    • 20 June 2023
    • Cloudflare, WebPerf
    • 4 reactions

    Cloudflare in “Faster website, more customers: Cloudflare Observatory can help your business grow”:

    The generated report provides an overall performance score ranging from 1 (least performant) to 99 (most performant)

    First try on my photography site: 100 🤷‍♂️😅

    Screenshot of Cloudflare Observatory showing a 100 score

    Joke aside, new tools to audit performance are always welcome!

  3. Note from 14 April 2023

    • Nicolas Hoizey
    • 14 April 2023
    • Cloudflare, Netlify, TTFB, WebPerf
    • 7 reactions

    I still don't understand why using Cloudflare in front of Netlify allows for a much better and stable Time To First Byte (TTFB) than Cloudflare Pages or Netlify alone… 🤷‍♂️

    SpeedCurve graph with Time To First Byte for the 3 hosting solutions

    TTFB for static sites should always be very low.

  4. Note from 24 May 2022

    • Nicolas Hoizey
    • 24 May 2022
    • AVIF, Cloudflare, Cloudinary, Dareboost, Netlify, WebPerf

    Why is #Dareboost reporting "7 resources has a non-consistent extension with its actual content" in this report where #Cloudinary images were proxified through #Netlify, but not on this one where they're not… 🤷‍♂️

  5. Note from 15 March 2022

    • Nicolas Hoizey
    • 15 March 2022
    • Cloudflare, Fastly, HTTP, WebPerf
    • 3 reactions

    TIL: #Cloudflare doesn't support the Vary HTTP header, which means the origin server can't do any content negotiation, for example send WebP or AVIF for a JPEG request…

    https://developers.cloudflare.com/cache/about/cache-control/#other

    #Fastly supports it, just saying… 😅

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy