shouldSkipCaching

Determines whether an image should be cached based on the image uri and headers.

Images will be skipped from caching if:

  • The image URL contains a query parameter with the key cache set to false

  • The headers have a "Cache-Control" entry with a value of "no-cache" or "max-age=0"

Parameters

imageUri

The uri of the image

headers

The response headers of the image request