-
When pre-rendering dynamic pages via getStaticPaths and props, the generated .json is stored , and loaded from a hashed folder. e.g.
With a new deployment, doesn't the build process then create a new set of .json files to be served invalidating cache? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It doesn't invalidate the cache of the old deployment, although if you replace the old deployment with the new one then you'll lose the cache. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Ifades. Reusing the cache sounds like a good feature. I'll keep my eyes open for that. I'm still a little confused. Can you elaborate for me please? Sorry, I failed to mention I am using now to deploy. Perhaps i should have asked there.
Am I correct to assume, the entire (client) cache is now broken? And any dynamic pages that have not been previously generated as the build (e.g. fallback: true) will need to be generated on the fly again? |
Beta Was this translation helpful? Give feedback.
It doesn't invalidate the cache of the old deployment, although if you replace the old deployment with the new one then you'll lose the cache.