• Resolved joejamin

    (@joejamin)


    Hi there – great plug-in! Thank you! Couple of questions if you have a second:

    I see the URLs loading in chrome network tab but show either “disk cache” or actual size (37kb) but never says “prefetch cache”. Does that mean it’s working or not?

    I saw this mentioned before but wanted to confirm that with Cloudflare APO on, the prefetched URLs should indeed be cached on the edge prior to that page actually being visited. Correct?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter joejamin

    (@joejamin)

    Never mind on the prefetch issue – I see it in the page once I visit it.

    • This reply was modified 3 years, 3 months ago by joejamin.
    Plugin Author Gijo Varghese

    (@gijo)

    @joejamin Glad, you resolved it yourself.

    Thread Starter joejamin

    (@joejamin)

    Thanks! Still wondering are these prefetch requests cached by Cloudflare if cache everything/APO is active even if the page isn’t actually visited?

    Plugin Author Gijo Varghese

    (@gijo)

    @joejamin yes, they’re cached by Cloudflare

    Thread Starter joejamin

    (@joejamin)

    Really appreciate your responses! Thank you so much! My final question: What is the best way to handle the browser cache TTL so if someone happens to prefetch a url and it’s stored in “disk cache”, they get a fresh copy when it’s purged or expires. Right now we have cache-control “max-age=86400” to direct NGINX page caching on the server (at the hosts direction). Does it make sense to do this maybe?

    max-age=60
    s-max-age=86400

    or is it not needed?

    Plugin Author Gijo Varghese

    (@gijo)

    @joejamin it’s better to never cache an HTML page in the browser. Pages cached when you preload are instantly revalidated when you navigate to the next page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Prefetch cache/Cloudflare’ is closed to new replies.