-
Notifications
You must be signed in to change notification settings - Fork 392
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
cacheAjaxRequests window.snapStore only of first crawled page #197
Comments
Depends on what do you mean. |
I'm loading data for the main navigation, so i was hoping to cache this so that the nav is immediately available and just updated with ajax if anything changed after the build. And so I was hoping to use the data stored in I was hoping to achieve this with any page initially accessed. |
What you described is supported. If you have problems with it post reproducible demo of the error |
Just to clarify how the crawler works, the crawler also just clicks on the link and if the link is, for example, loaded via react-router, then the component is already loaded and doesn't execute the |
It is not clicking to URLs, it loads each url by navigating browser to it. React in the browser works as expected, everything called appropriately. You can add |
The ajax call seems to be working on every page crawl. I'll fork my repo and share it with you, if it's okay and would probably make things easier. I also have an unrelated issue where react-snap is causing an error when I execute |
Here's the repo: https://github.com/hesedel/frontend-public.git you can see when you run |
Ok I know what the issue.
but all consequent requests are served Possible solutions:
|
Oh okay so it was the serviceworker? I wouldn’t expect that as i see in chrome console that service worker cannot be installed because localhost is not on an https protocol unless react-snap is able to. So for now my actionable point would be your last suggestion? Thank you |
I thought it was service worker, but appears it is browser cache. I'm preparing fix |
Fixed in v1.14.0. you need to add |
Cool! Thanks! Cheers! |
It seems that window.snapstore is only available on the first crawled page. Is this how it is supposed to be? Or is something wrong with my setup?
The text was updated successfully, but these errors were encountered: