Cache script, dwr, icons and coverArt

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent 3bf2ca7c18
commit b2957139a3
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/boot/Application.java

@ -129,7 +129,7 @@ public class Application extends SpringBootServletInitializer implements Embedde
public FilterRegistrationBean cacheFilterRegistration() { public FilterRegistrationBean cacheFilterRegistration() {
FilterRegistrationBean registration = new FilterRegistrationBean(); FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(cacheFilter()); registration.setFilter(cacheFilter());
registration.addUrlPatterns("/icons/*", "/style/*"); registration.addUrlPatterns("/icons/*", "/style/*", "/script/*", "/dwr/*", "/icons/*", "/coverArt.view");
registration.addInitParameter("Cache-Control", "max-age=36000"); registration.addInitParameter("Cache-Control", "max-age=36000");
registration.setName("CacheFilter"); registration.setName("CacheFilter");
registration.setOrder(5); registration.setOrder(5);

Loading…
Cancel
Save