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:
@@ -18,6 +18,7 @@ import HighlightjsGraphql from 'highlightjs-graphql'
|
||||
import remarkCodeExtra from 'remark-code-extra'
|
||||
import codeHeader from './plugins/code-header.js'
|
||||
import rewriteLocalLinks from './plugins/rewrite-local-links.js'
|
||||
import rewriteImgSources from './plugins/rewrite-asset-urls.js'
|
||||
import useEnglishHeadings from './plugins/use-english-headings.js'
|
||||
import rewriteLegacyAssetPaths from './plugins/rewrite-legacy-asset-paths.js'
|
||||
import wrapInElement from './plugins/wrap-in-element.js'
|
||||
@@ -45,6 +46,7 @@ export default function createProcessor(context) {
|
||||
.use(raw)
|
||||
.use(rewriteLegacyAssetPaths, context)
|
||||
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
|
||||
.use(rewriteImgSources)
|
||||
.use(rewriteLocalLinks, {
|
||||
languageCode: context.currentLanguage,
|
||||
version: context.currentVersion,
|
||||
|
||||
Reference in New Issue
Block a user