Tell CloudFlare to cache an image in a dynamic response's header


#1

Hi,

Is it possible to add some header in the dynamic response (JSON) from my origin server, in order to make CloudFlare cache (if not already) a specific image?
To avoid a cache miss from the client who will receive the response.

Regards


#2

The two requests aren’t related in any way, so there’s not really any way to instruct CF to cache another resource. The only way you could instruct CF to cache it would be by making sure the image itself has proper cache-control headers.