4 ms·
Not much into that kind of DevOps. What is a good basic caching in this instance?
by deepsiml 1y ago
Not much into that kind of DevOps. What is a good basic caching in this instance?
- TechDebtDevin 1y agoCloudflare and other CDNs will usually automatically cache your static pages.
- haiku2077 1y agoIt 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/Caching 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 1y agoJust 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.
- haiku2077 1y agoYou can use Cache Control headers to express that your own CDN should aggressively refresh a resource but always serve it to external clients from cache. It's covered in the link under "Managed Caches"
- cortesoft 1y agoA CDN can be configured to ignore cache control headers in the requests and cache things anyway.
- deepsiml 1y agoThank you!