I use google CDN with google load balancer, which has a few backend services and each has different setting for google CDN, like following.
service A: google CDN disabled (API server)
service B: google CDN enabled, 1day (Cache-Control: public, max-age=86400), cache-key: full URL
service C: google CDN enabled, 1year (Cache-Control: public, max-age=31536000), cache-key: full URL
problem is, service C
got request from google load balancer, which URL is already requested yesterday and processed correctly. (status 200, with Cache-Control header and Content-Length
)
it does not happen always, for example, just after returns response from our server, google load balancer returns response without querying. but about a day passed, they start to ask again. note that I made request almost same geographic location.
after some googlng, I already found following link on SO, which says google CDN evict its contents aggressively (says only 10MB cache size in total), https://stackoverflow.com/a/54031267/1982282
and google CDN does not assure to respect max-age. Google Cloud CDN ignores max-age over 3600
but the reason of above issues are, really this aggressive eviction?
actually, our server still in development phase so does not have large amount of traffic, also total cache sizes are only ~ 10MB or some. but in my personal feeling, I cannot believe google CDN evicts contents that hard (within 1day, 10MB+ in size).
could anyone share your experience about google CDN eviction rate?
regards,