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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user