How do I cache signed URL from Cloudfront #1849
Unanswered
ishail-dev
asked this question in
Q&A
Replies: 2 comments
-
Isn't this what Request.diskCacheKey is for? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Despite using What finally worked is setting
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Usecase:
I have a specific use-case, where I have to load signed URL from Cloudfront very frequently. Signed Cloudfront URL looks something like this:
<base_url>/<filepath>?Expires=1692731643&Signature=sT-BagXsZkUnw....
Since this image file is accessed very frequently in the app, I wanted to cache it in the disk with some custom key(like
<base_url>/<filepath>
since only GET parameters changes everytime. Can you please let me know how do I do this?Things I tried:
This is how I have defined ImageLoader:
This is how I have defined ImageRequest:
Beta Was this translation helpful? Give feedback.
All reactions