Search code examples
firebasegoogle-cloud-functionsfirebase-hosting

Does Firebase include domain name while caching content from functions?


I am using request.hostname in functions to serve different content for the same url.pathname. If I set Cache-Control to cache the content in CDN, will it be cached by url.pathname or request.hostname+url.pathname? i.e. will it serve the same the content across different domains because of caching?


Solution

  • Caching is specific to the complete URL, not just to the path.