Skip to content

Commit

Permalink
Switch to max-age=0 from no-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO committed Dec 26, 2024
1 parent eef03de commit 4270986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class WebMvcInitializer implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/*").addResourceLocations("classpath:/static/")
.setCacheControl(CacheControl.noCache().maxAge(Duration.ZERO).mustRevalidate()).setUseLastModified(true)
.setCacheControl(CacheControl.maxAge(Duration.ZERO).mustRevalidate()).setUseLastModified(true)
.resourceChain(true).addResolver(new PathResourceResolver() {
@Override
protected Resource resolveResourceInternal(HttpServletRequest request, @NonNull String requestPath,
Expand Down

0 comments on commit 4270986

Please sign in to comment.