codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Caching for files too aggressive

Open ivanjeremic opened this issue 3 years ago • 0 comments
trafficstars

I have a small sandbox where I deleted some html file which is used by my framework (node based compiler for HTML), It basically goes trough the file-system and builds an ui from the templates it finds, I moved some files around changed them deleted them and then added the same file back with the same name now the preview is rendering the old version of my app no matter how hard the compiler does it's thinking it can grab it from the cache because it existed before and render the preview.

The solution here I think is once a file is removed clear the sandbox file cache so in case the same file gets added back with different content it will show the new version.

ivanjeremic avatar Jun 17 '22 21:06 ivanjeremic