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

fix: don't invalidate cache after timeout refresh #1023

Merged
merged 2 commits into from Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/index.js
Expand Up @@ -206,11 +206,16 @@
*/
updateCacheModule(module) {
if (
this.content !== /** @type {CssModule} */ (module).content ||
!this.content.equals(/** @type {CssModule} */ (module).content) ||
this.layer !== /** @type {CssModule} */ (module).layer ||
this.supports !== /** @type {CssModule} */ (module).supports ||
this.media !== /** @type {CssModule} */ (module).media ||
this.sourceMap !== /** @type {CssModule} */ (module).sourceMap ||
(this.sourceMap
? !this.sourceMap.equals(

Check warning on line 214 in src/index.js

View check run for this annotation

Codecov / codecov/patch

src/index.js#L214

Added line #L214 was not covered by tests
/** @type {Uint8Array} **/
(/** @type {CssModule} */ (module).sourceMap)
)
: false) ||
this.assets !== /** @type {CssModule} */ (module).assets ||
this.assetsInfo !== /** @type {CssModule} */ (module).assetsInfo
) {
Expand Down