cache bust index html on arbitrary dom changes #1474
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what this pr introduces is a cache key in the form of a render on first cache of the appInfo
subsequent runs render the html file before it would be processed and altered by webpack to contain all chunks this providing a stable key to check against
we also have a final check in place once webpack has built to not write a file if the final content is unchanged which is done as a file system check
@ef4 this seems to be caused by the way we check if appInfo is the same and if we need to set up a new webpack instance
I did not find a better way to query at start of the build or at another point during the process