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

Hotfix/cache all images #880

Merged
merged 2 commits into from
Feb 3, 2020
Merged

Hotfix/cache all images #880

merged 2 commits into from
Feb 3, 2020

Conversation

chrismclarke
Copy link
Member

Small fix for issue outlined in pr #872, where for some reason only half the images cached.
Still unsure the root cause, but adding a second fallback cache seems to fix (see screenshot of all resources coming from cache).

image

Additionally added headers which will be set to anything in the firebase static folder (currently just icon and fonts), enabling cors support and some expiration.

@chrismclarke chrismclarke requested a review from BenGamma January 20, 2020 11:49
@cypress
Copy link

cypress bot commented Jan 20, 2020



Test summary

30 0 0 0


Run details

Project onearmy-community-platform
Status Passed
Commit 704b2fa
Started Jan 20, 2020 11:54 AM
Ended Jan 20, 2020 12:01 PM
Duration 06:29 💡
OS Linux Ubuntu Linux - 14.04
Browser Electron 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@BenGamma
Copy link
Contributor

Hey chris, thanks for working on a fix.
Could you give me more details on how to test this feature ?
Is it supposed to allow navigation even if network is down ?
What I'm doing now to test is turn the wifi down when navigating on the how-to list and reload the page, but not sure it is the right way.

Copy link
Contributor

@BenGamma BenGamma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment below about testing 👆

@chrismclarke
Copy link
Member Author

It's just an extension to #872
See the discussion there for testing.
#872 (comment)

You see your screenshot only has half the images cached... this should fix to make all of them cache

@BenGamma BenGamma merged commit 11b3be8 into master Feb 3, 2020
@BenGamma BenGamma deleted the hotfix/cache-all-images branch February 3, 2020 09:26
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

Successfully merging this pull request may close these issues.

2 participants