@adobe/helix-html-pipeline 6.31.0 → 6.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.31.1](https://github.com/adobe/helix-html-pipeline/compare/v6.31.0...v6.31.1) (2026-08-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **sitemap-index:** on a 404, we should also return code-related surrogate keys ([#1127](https://github.com/adobe/helix-html-pipeline/issues/1127)) ([132409c](https://github.com/adobe/helix-html-pipeline/commit/132409c77d334adb115d6bc26557186e7a2ba335))
|
|
7
|
+
|
|
1
8
|
# [6.31.0](https://github.com/adobe/helix-html-pipeline/compare/v6.30.1...v6.31.0) (2026-08-17)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ export default async function setXSurrogateKeyHeader(state, req, res) {
|
|
|
61
61
|
} = state;
|
|
62
62
|
|
|
63
63
|
const isCode = state.content.sourceBus === 'code';
|
|
64
|
-
const
|
|
64
|
+
const isSitemapRelated = ['/sitemap.xml', '/sitemap-index.xml'].includes(path);
|
|
65
65
|
|
|
66
66
|
// provide either (prefixed) preview or (unprefixed) live content keys
|
|
67
67
|
const contentKeyPrefix = partition === 'preview' ? 'p_' : '';
|
|
@@ -72,9 +72,12 @@ export default async function setXSurrogateKeyHeader(state, req, res) {
|
|
|
72
72
|
keys.push(`${ref}--${repo}--${owner}_code`);
|
|
73
73
|
} else {
|
|
74
74
|
keys.push(`${contentKeyPrefix}${hash}`);
|
|
75
|
-
if (
|
|
75
|
+
if (!isSitemapRelated) {
|
|
76
76
|
keys.push(`${contentKeyPrefix}${contentBusId}_metadata`);
|
|
77
77
|
keys.push(`${ref}--${repo}--${owner}_head`);
|
|
78
|
+
} else if (path === '/sitemap-index.xml' && res.status === 404) {
|
|
79
|
+
keys.push(await computeCodePathKey(state));
|
|
80
|
+
keys.push(`${ref}--${repo}--${owner}_code`);
|
|
78
81
|
}
|
|
79
82
|
keys.push(`${contentKeyPrefix}${contentBusId}`);
|
|
80
83
|
}
|