Skip to content

Commit

Permalink
cache frontend application files
Browse files Browse the repository at this point in the history
all relevant front files are generated with cache busting so we can cache them in production
for quite a long time.

closes #15126
  • Loading branch information
atomfrede committed May 28, 2021
1 parent 717d172 commit 3986aca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import java.util.concurrent.TimeUnit;
@Profile({JHipsterConstants.SPRING_PROFILE_PRODUCTION})
public class StaticResourcesWebConfiguration implements WebMvcConfigurer {
protected static final String[] RESOURCE_LOCATIONS = new String[]{"classpath:/static/app/", "classpath:/static/content/", "classpath:/static/i18n/"};
protected static final String[] RESOURCE_PATHS = new String[]{"/app/*", "/content/*", "/i18n/*"};
protected static final String[] RESOURCE_LOCATIONS = new String[]{"classpath:/static/", "classpath:/static/content/", "classpath:/static/i18n/"};
protected static final String[] RESOURCE_PATHS = new String[]{"/*.js", "/*.css", "/*.svg", "/*.png", "*.ico", "/content/*", "/i18n/*"};

private final JHipsterProperties jhipsterProperties;

Expand Down

0 comments on commit 3986aca

Please sign in to comment.