Hi,
I am using jserver as the backend. I have to put banano app in the server's www folder as XMLHTTPrequest does not support cross-origin.
I use the following command to copy the built banano files to the www folder:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
But I found the files are cached and I need to clear cache to see the updated result.
What is the correct way to prevent this from happening?
I tried [Server] Disable/Enable cache for specific static files and disabled serviceworker. It turns out files are not cached any more.
			
			I am using jserver as the backend. I have to put banano app in the server's www folder as XMLHTTPrequest does not support cross-origin.
I use the following command to copy the built banano files to the www folder:
			
				B4X:
			
		
		
		    ' start the build
    BANano.Build(File.DirApp)
    Log("copying...")
    Dim sh As Shell
    sh.Initialize("","xcopy.exe",Array("/E/Y","C:\Users\xulihang\Documents\B4J\TRMS\frontend\Objects\Search\*","C:\Users\xulihang\Documents\B4J\TRMS\backend\Objects\www"))
    sh.RunSynchronous(5000)
    Log("done")But I found the files are cached and I need to clear cache to see the updated result.
What is the correct way to prevent this from happening?
I tried [Server] Disable/Enable cache for specific static files and disabled serviceworker. It turns out files are not cached any more.
 
				 
 
		 
 
		 
 
		 
	 
	 
 
		 
 
		 
 
		 
 
		