mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	caching
This commit is contained in:
		
							parent
							
								
									35a998b934
								
							
						
					
					
						commit
						989f0bbbfb
					
				@ -21,7 +21,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
 | 
			
		||||
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
 | 
			
		||||
        // Handler for external static resources
 | 
			
		||||
        registry.addResourceHandler("/**")
 | 
			
		||||
                .addResourceLocations("file:customFiles/static/", "classpath:/static/")
 | 
			
		||||
                .setCachePeriod(0); // Optional: disable caching
 | 
			
		||||
                .addResourceLocations("file:customFiles/static/", "classpath:/static/");
 | 
			
		||||
                //.setCachePeriod(0); // Optional: disable caching
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user