Open isaacdarcilla opened 10 months ago
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
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.