Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers Image #73

Open
rock288 opened this issue Aug 27, 2020 · 3 comments
Open

Headers Image #73

rock288 opened this issue Aug 27, 2020 · 3 comments

Comments

@rock288
Copy link

rock288 commented Aug 27, 2020

How to send headers of a Image?

@vivaxy
Copy link
Owner

vivaxy commented Aug 27, 2020

Thank you for your suggestion. Maybe we should replace Image.getSize with Image.getSizeWithHeaders.

Remaining questions:

  • What's the cache key?

I'll look into it.

@rock288
Copy link
Author

rock288 commented Sep 11, 2020

i use getSizeWithHeaders and set key of MAP cache by image.uri. It work for me.

@vivaxy
Copy link
Owner

vivaxy commented Sep 11, 2020

If the cache key is image.uri and some header value affects the image response, the cache is not valid. It's not a complete solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants