We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
graphql not cached, I already added the url in config.
graphql
next-pwa
next
Steps to reproduce the behavior:
const withPWA = require('next-pwa')({ dest: "public", register: true, skipWaiting: true, cacheOnFrontEndNav: true, scope: '/', runtimeCaching: [ { urlPattern: /^http:\/\/localhost:8000\/graphql/, handler: 'StaleWhileRevalidate', options: { cacheName: 'graphql-api-cache', }, }, { urlPattern: /^http:\/\/localhost:8000\/api\/user/, handler: 'StaleWhileRevalidate', options: { cacheName: 'user-api-cache', }, }, ], // disabled: process.env.NODE_ENV === "development", })
npm run build
npm run start
It should cache the graphql url also
As you can see, only the user-api-cache is cached, and graphql-api-cache is not.
user-api-cache
graphql-api-cache
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
graphql
not cached, I already added the url in config.Versions
next-pwa
: 5.6.0next
: 13.0.3How To Reproduce
Steps to reproduce the behavior:
npm run build
npm run start
Expected Behaviors
It should cache the
graphql
url alsoScreenshots
As you can see, only the
user-api-cache
is cached, andgraphql-api-cache
is not.The text was updated successfully, but these errors were encountered: