当前位置:网站首页>7.2.1 cache configuration of static resources

7.2.1 cache configuration of static resources

2020-11-06 01:14:00 Memory

All the source code in the project can be found in the linked repository :https://github.com/chenhaoxiang/uifuture-ssm

7.2 Static resource caching and loading GZIP resources

Static resources (CSS,JS etc. ) It doesn't change often , So it can be cached , You can use the cache until you change it , You can also compress , So optimize the static resources in this way , There will be some optimization for the speed of project access . If there are a lot of static resources , Then the optimization effect will be more obvious . In this section, we will explain how to use Spring MVC Configure cache and compress static resources in .

Since the project has been configured with static resource mapping and static Directory creation . ad locum , Let's go straight on

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢