diff --git a/en/sitemap.xml.gz b/en/sitemap.xml.gz index 3fff88759..a7bd40fd0 100644 Binary files a/en/sitemap.xml.gz and b/en/sitemap.xml.gz differ diff --git a/en/vercel.json b/en/vercel.json deleted file mode 100644 index 186444bb4..000000000 --- a/en/vercel.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "headers": [ - { - "source": "/assets/stylesheets/main.(.+).min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/stylesheets/palette.(.+).min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/bundle.(.+).min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/workers/search.(.+).min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/glightbox.min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/stylesheets/glightbox.min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/javascripts/mathjax.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/assets/images/logo.svg", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/assets/images/favicon.png", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/stylesheets/extra.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - } - ] -} \ No newline at end of file diff --git a/sitemap.xml.gz b/sitemap.xml.gz index 8dab67c6b..877a92cde 100644 Binary files a/sitemap.xml.gz and b/sitemap.xml.gz differ diff --git a/vercel.json b/vercel.json index 186444bb4..a7355c192 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,7 @@ { "headers": [ { - "source": "/assets/stylesheets/main.(.+).min.css", + "source": "(/en|/zh-hant)?/assets/stylesheets/main.(.+).min.css", "headers": [ { "key": "Cache-Control", @@ -10,7 +10,7 @@ ] }, { - "source": "/assets/stylesheets/palette.(.+).min.css", + "source": "(/en|/zh-hant)?/assets/stylesheets/palette.(.+).min.css", "headers": [ { "key": "Cache-Control", @@ -19,7 +19,7 @@ ] }, { - "source": "/assets/javascripts/bundle.(.+).min.js", + "source": "(/en|/zh-hant)?/assets/javascripts/bundle.(.+).min.js", "headers": [ { "key": "Cache-Control", @@ -28,7 +28,7 @@ ] }, { - "source": "/assets/javascripts/workers/search.(.+).min.js", + "source": "(/en|/zh-hant)?/assets/javascripts/workers/search.(.+).min.js", "headers": [ { "key": "Cache-Control", @@ -37,7 +37,7 @@ ] }, { - "source": "/assets/javascripts/glightbox.min.js", + "source": "(/en|/zh-hant)?/assets/javascripts/glightbox.min.js", "headers": [ { "key": "Cache-Control", @@ -46,7 +46,7 @@ ] }, { - "source": "/assets/stylesheets/glightbox.min.css", + "source": "(/en|/zh-hant)?/assets/stylesheets/glightbox.min.css", "headers": [ { "key": "Cache-Control", @@ -55,7 +55,7 @@ ] }, { - "source": "/javascripts/mathjax.js", + "source": "(/en|/zh-hant)?/javascripts/mathjax.js", "headers": [ { "key": "Cache-Control", @@ -64,7 +64,7 @@ ] }, { - "source": "/assets/images/logo.svg", + "source": "(/en|/zh-hant)?/assets/images/logo.svg", "headers": [ { "key": "Cache-Control", @@ -73,7 +73,7 @@ ] }, { - "source": "/assets/images/favicon.png", + "source": "(/en|/zh-hant)?/assets/images/favicon.png", "headers": [ { "key": "Cache-Control", @@ -82,13 +82,22 @@ ] }, { - "source": "/stylesheets/extra.css", + "source": "(/en|/zh-hant)?/stylesheets/extra.css", "headers": [ { "key": "Cache-Control", "value": "public, max-age=86400, immutable" } ] + }, + { + "source": "(/en|/zh-hant)?/chapter_*/.assets/(.+).(png|jpg|svg|gif|webp)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] } ] } \ No newline at end of file diff --git a/zh-hant/sitemap.xml.gz b/zh-hant/sitemap.xml.gz index 13f630f1b..bc7d86607 100644 Binary files a/zh-hant/sitemap.xml.gz and b/zh-hant/sitemap.xml.gz differ diff --git a/zh-hant/vercel.json b/zh-hant/vercel.json deleted file mode 100644 index 186444bb4..000000000 --- a/zh-hant/vercel.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "headers": [ - { - "source": "/assets/stylesheets/main.(.+).min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/stylesheets/palette.(.+).min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/bundle.(.+).min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/workers/search.(.+).min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/javascripts/glightbox.min.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/assets/stylesheets/glightbox.min.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=2592000, immutable" - } - ] - }, - { - "source": "/javascripts/mathjax.js", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/assets/images/logo.svg", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/assets/images/favicon.png", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "/stylesheets/extra.css", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=86400, immutable" - } - ] - } - ] -} \ No newline at end of file