talkingarmor
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
The client script is deployed as PWA. This is the default code generated with Quasar.
I'll probably have to dig into how this piece of code works
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
I just did a scan of my code, the only occurance of cache is this piece of code
/* eslint-env serviceworker */
/*
* This file (which will be your service worker)
* is picked up by the build system ONLY if
* quasar.config.js > pwa > workboxMode is set to "injectManifest"
*/
import { clientsClaim } from 'workbox-core'
import { precacheAndRoute, cleanupOutdatedCaches, createHandlerBoundToURL } from 'workbox-precaching'
import { registerRoute, NavigationRoute } from 'workbox-routing'
self.skipWaiting()
clientsClaim()
// Use with precache injection
precacheAndRoute(self.__WB_MANIFEST)
cleanupOutdatedCaches()
// Non-SSR fallback to index.html
// Production SSR fallback to offline.html (except for dev)
if (process.env.MODE !== 'ssr' || process.env.PROD) {
registerRoute(
new NavigationRoute(
createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML),
{ denylist: [/sw\.js$/, /workbox-(.)*\.js$/] }
)
)
}
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
I see, then I'm not sure what's causing the browser to load the caches instead of the new files. I have migrated over the Cloudflare Pages for the last few days so everything is now served via CF pages
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
I can't find "cache everything" type of setting in the Pages settings. Is there a doc that I can look at that explains how to disable/reduce the caches?
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/31/2024 in #pages-help
Vuejs in Cloudflare not updated on refresh
I left it to the default settings. Do I need to change the caching rules in Cloudflare?
11 replies
CDCloudflare Developers
•Created by talkingarmor on 3/27/2024 in #workers-help
How to test multiple workers locally
I see, that's quite difficult to develop then. Does that mean that people just test the functions remotely?
3 replies