Skip to content

Commit

Permalink
Fix static asset caching (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylepmets authored and markbrocato committed Jan 24, 2020
1 parent 9d048f0 commit d4d91ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-storefront",
"version": "7.1.0",
"version": "7.1.1",
"description": "Build and deploy e-commerce progressive web apps (PWAs) in record time.",
"module": "./index.js",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion service-worker/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function isSecure(context) {
* @return {Boolean}
*/
function isStaticAsset(context) {
return context.url.pathname.startsWith('/pwa/')
return context.url.pathname.startsWith('/_next/static/')
}

/**
Expand Down

0 comments on commit d4d91ec

Please sign in to comment.