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: check authorities in app adapter [LIBS-370] #757

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(sw): don't use SWR on .json and .action requests
  • Loading branch information
KaiVandivier committed Oct 14, 2022
commit b5dcd5fea08375f2f549200fcb732fd47042062d
3 changes: 2 additions & 1 deletion pwa/src/service-worker/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export function setUpServiceWorker() {
({ url }) =>
PRODUCTION_ENV &&
urlMeetsAppShellCachingCriteria(url) &&
fileExtensionRegexp.test(url.pathname),
fileExtensionRegexp.test(url.pathname) &&
!/\.(json|action)/.test(url.pathname), // don't SWR these
KaiVandivier marked this conversation as resolved.
Show resolved Hide resolved
new StaleWhileRevalidate({ cacheName: 'other-assets' })
)

Expand Down