top | item 44444192

(no title)

deepsiml | 8 months ago

Not much into that kind of DevOps. What is a good basic caching in this instance?

discuss

order

haiku2077|8 months ago

It comes down to:

1. Use the Cache-Control header to express how to cache your site correctly (https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cac...)

2. Use a CDN service, or at least a caching reverse proxy, to serve most of the cacheable requests to reduce load on the (typically much more expensive) origin servers

mrweasel|8 months ago

Just note that many AI scrapers will go to great length to do cache busting. For some reason many of them feel like they need to get the absolute latest version and don't trust your cache.

TechDebtDevin|8 months ago

Cloudflare and other CDNs will usually automatically cache your static pages.