-
SummaryI use ServiceWorker and CacheStorage for caching in my application. It has been working fine. But the URL provided by the Router of Next.js is always like this: "https://someone.com/...?rsc=somenumber...", and the number of rsc will change every time. This caused my ServiceWorker to cache each page twice, or more. What I want to ask is, what is the function of "rsc" in searchParam? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
I believe that Or else, you have several options to opt out based on the need, and this is one of them. Opt out - Full Route Cache
I'd recommend you to check out the P.S. If none of these work, it would be great if you share a repro. Reference |
Beta Was this translation helpful? Give feedback.
-
You are right, but this is all about turning off the RSC feature, but how to disable and only disable rsc in the URL? |
Beta Was this translation helpful? Give feedback.
-
I am developing a static web app with |
Beta Was this translation helpful? Give feedback.
-
Is there a workaround how to stop sending _rsc http://localhost:2305/apps/a1/posts/u0zz2euf2rfk76h58a/edit?_rsc=13zaz I do not want the next.js call
'use client'
export const dynamic = 'force-static'
import { EditPageView } from '@fasto/crud'
import EditPost from '@/features/sa/components/pages/posts/EditPost'
export default function Page() {
return <div>Test</div>
} |
Beta Was this translation helpful? Give feedback.
fix here: