My site has very little traffic and pages take a long time to render so I can't count on traffic alone to warm the cache. I have been using a cron job to make period requests but am finding that my pages are being evicted form the cache much quicker than expected, sometimes just seconds or a couple minutes even with the following headers.
cache-control: public, s-maxage=86400, maxage=120, stale-while-revalidate=120
I suspect that the low volume of traffic is causing Fastly to evict my resources before the should be. Since traffic is so low it's hard to imagine that I'm using too much storage.
Are there any headers or settings I can provide to improve retention in the cache? More information on the LRU rules mentioned here would be very helpful. There are no Set-Cookie headers and I have a fairly vanilla setup. The two main configurations are shielding and overriding the Host header on requests to the origin server (configured for the backend, not globally).
Please sign in to leave a comment.