I have problems with CDN and Cloud Run times to response. The response time to request is too big.
CDN
Cloud Run. It's problem too. Big response time http-requests and sometimes problems with static js, etc.
In the logs of the load balancer, it can be seen that the CDN (https) gives static from 2 to 20 seconds. This happens often, provided that a couple of people use the site. See screenshot 1 and screenshot 2. Response times are beyond unreasonable.
Details:
- what's being cached: images (sizes on screenshots 1,2)
- frontend: a load balancer with cloud cdn enabled
- backend: a storage bucket (config)
Detailed settings:
- Cache mode: Use origin headers (to preserve original max-age attributes of images)
- Restricted content: Public access to the content cached by Cloud CDN allowed
- Negative caching: Disabled
- Serve while stale: Disabled
Frontend: https, managed certificate, premium network tier