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

Allow multi-faceted image cache refresh #4

Open
nasser85 opened this issue Jul 13, 2018 · 0 comments
Open

Allow multi-faceted image cache refresh #4

nasser85 opened this issue Jul 13, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@nasser85
Copy link
Owner

nasser85 commented Jul 13, 2018

Currently, when a user clicks on the "View Nasa Images from this Location" link in the info window of a marker, one of two things happens:

  • If a location and its image(s) are not present in the GoogleMap component cache - the latitude and longitude of the location are passed along to the NASA Earth Imagery API where a GET request is made for url link to the image. This image is not only displayed in the image window modal but the url is also saved alongside the location in the cache for future access.
  • If a location and its image(s) are present in the GoogleMap component cache - the relevant url is accessed from the cache and displayed.

The problem here is that the url comes with a token attached to it that has an expiration. As a result, it is possible for someone to access a location that exists in the cache that pulls up an image with a broken src. Therefore we would have to build a robust set of refresh cache functions or a class to refetch urls and update the cache in the event that a image token has expired.

@nasser85 nasser85 added bug Something isn't working enhancement New feature or request labels Jul 13, 2018
@nasser85 nasser85 self-assigned this Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant