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

Image Processing API => Skip Cache? #58

Open
mproche opened this issue Jun 8, 2023 · 0 comments
Open

Image Processing API => Skip Cache? #58

mproche opened this issue Jun 8, 2023 · 0 comments

Comments

@mproche
Copy link

mproche commented Jun 8, 2023

Hey not sure if this is the best place to reach out. Loving this extension but I am running into an issue with the caching.

Steps to Reproduce

  1. Upload file to Firebase Storage to users/userID/profile-pic.jpg
  2. Use invertase process api to get the image on the client
  3. Upload a new profile picture to users/userID/profile-pic.jpg
  4. Once again, use invertase process api to get the image on the client

Issue
I am getting back the original upload picture (from step 1) not the newer picture (from step 3). I believe this is because Invertase is caching the photos (which is great), but how can I skip/update the cache when I know that the picture has changed?

Potential Solution
Somewhere in the input could there be a bool parameter skipCache where Invertase would skip the cache and get the new image?
Or is there a different API other than GET /process that we can hit to let Invertase know the cache is invalid?

I hope this makes sense! Happy to provide more details & have been loving this extension -- thanks for all the hard work!

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

No branches or pull requests

1 participant