I am developing an Instagram like app. Using Google Cloud CDN Signed URL for serving media assets. My question is if I generate two different Google Cloud CDN Signed URLs but for the same media asset, would the second request still hit the cache if it has a different signature?
Hi @thoughtspeed7 ,
If you generate different signed URLs for the same media asset, the Cloud CDN will treat them as different cache keys— because the full URL (including the signature) is part of the cache key by default.
So no, the second request will not hit the cache if the signature (or any URL parameter) is different.
To improve caching efficiency, consider using custom cache keys to ignore the signature in the cache key — but only if your backend enforces signature validation.