diff --git a/novel-front/src/main/resources/application.yml b/novel-front/src/main/resources/application.yml index a4f1abd..58c2a91 100644 --- a/novel-front/src/main/resources/application.yml +++ b/novel-front/src/main/resources/application.yml @@ -45,6 +45,19 @@ spring: + + + resources: + cache: + # 资源缓存时间,单位秒 + period: 604800 + # 开启gzip压缩 + chain: + gzipped: true + # 启用缓存 + cache: true + + # mvc: # static-path-pattern: /static/** #设定静态文件路径,js,css等 mybatis: diff --git a/novel-front/src/main/resources/templates/books/book_content.html b/novel-front/src/main/resources/templates/books/book_content.html index 0d8a35e..b26b42d 100644 --- a/novel-front/src/main/resources/templates/books/book_content.html +++ b/novel-front/src/main/resources/templates/books/book_content.html @@ -466,16 +466,6 @@
diff --git a/novel-front/src/main/resources/templates/books/book_search.html b/novel-front/src/main/resources/templates/books/book_search.html index 78d1ee6..210161a 100644 --- a/novel-front/src/main/resources/templates/books/book_search.html +++ b/novel-front/src/main/resources/templates/books/book_search.html @@ -227,18 +227,6 @@ diff --git a/novel-front/src/main/resources/templates/books/index_v2.html b/novel-front/src/main/resources/templates/books/index_v2.html index 2f4b801..156695f 100644 --- a/novel-front/src/main/resources/templates/books/index_v2.html +++ b/novel-front/src/main/resources/templates/books/index_v2.html @@ -284,17 +284,6 @@ diff --git a/novel-front/src/main/resources/templates/books/mh_book_search.html b/novel-front/src/main/resources/templates/books/mh_book_search.html index e34df82..d4bd07b 100644 --- a/novel-front/src/main/resources/templates/books/mh_book_search.html +++ b/novel-front/src/main/resources/templates/books/mh_book_search.html @@ -238,16 +238,6 @@