remoteEntry.js modules not to be cached #12986
Unanswered
aquarazorda
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You may be interested in this plugin to invalidate cache. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to load remoteEntry.js once and then use it to load same or different modules in different places, but the issue that I'm facing is that, modules get cached. So for example if I load the module second time, it has the state of first load and I can't avoid that.
With current loadRemoteModule() behavior, if I load same module with different data twice on the same page, I get two remoteEntry.js added to the DOM, so I overloaded it and if I already have remoteEntry.js present, I do not add it again. With this approach, I'm facing that module cache problem.
What I'm trying to achieve is, that I want to load remoteEntry.js once and use it to load modules in different places as many times as I want.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions