1
0
mirror of synced 2025-12-22 03:16:52 -05:00

cache asset images more aggressively (#23553)

* cache asset images more aggressively

* more careful about which gets the manual surrogate key

* fix rendered-content-link-checker script too

* feedbacked
This commit is contained in:
Peter Bengtsson
2021-12-10 08:01:48 -05:00
committed by GitHub
parent dc1a510110
commit ae3dadfc66
8 changed files with 150 additions and 16 deletions

View File

@@ -26,8 +26,8 @@ function getNewHref(link, languageCode, version) {
const href = link.attr('href')
// Exceptions to link rewriting
if (href.startsWith('/assets')) return
if (href.startsWith('/public')) return
if (href.startsWith('/assets/')) return
if (href.startsWith('/public/')) return
if (Object.keys(externalRedirects).includes(href)) return
let newHref = href