Skip to content

Commit d4d91ec

Browse files
tonylepmetsmarkbrocato
tonylepmets
authored andcommitted
Fix static asset caching (#22)
1 parent 9d048f0 commit d4d91ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-storefront",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "Build and deploy e-commerce progressive web apps (PWAs) in record time.",
55
"module": "./index.js",
66
"license": "Apache-2.0",

service-worker/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ function isSecure(context) {
324324
* @return {Boolean}
325325
*/
326326
function isStaticAsset(context) {
327-
return context.url.pathname.startsWith('/pwa/')
327+
return context.url.pathname.startsWith('/_next/static/')
328328
}
329329

330330
/**

0 commit comments

Comments
 (0)