diff --git a/ghost/core/core/server/api/endpoints/links.js b/ghost/core/core/server/api/endpoints/links.js index f9be4e0c90..6af56a4a52 100644 --- a/ghost/core/core/server/api/endpoints/links.js +++ b/ghost/core/core/server/api/endpoints/links.js @@ -24,7 +24,9 @@ module.exports = { }, bulkEdit: { statusCode: 200, - headers: {}, + headers: { + cacheInvalidate: true + }, options: [ 'filter' ], diff --git a/ghost/core/test/e2e-api/admin/__snapshots__/links.test.js.snap b/ghost/core/test/e2e-api/admin/__snapshots__/links.test.js.snap index 14f23d135b..13cbb6dae6 100644 --- a/ghost/core/test/e2e-api/admin/__snapshots__/links.test.js.snap +++ b/ghost/core/test/e2e-api/admin/__snapshots__/links.test.js.snap @@ -145,6 +145,7 @@ Object { "content-type": "application/json; charset=utf-8", "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, "vary": "Accept-Version, Origin, Accept-Encoding", + "x-cache-invalidate": "/*", "x-powered-by": "Express", } `; @@ -294,6 +295,7 @@ Object { "content-type": "application/json; charset=utf-8", "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, "vary": "Accept-Version, Origin, Accept-Encoding", + "x-cache-invalidate": "/*", "x-powered-by": "Express", } `; @@ -443,6 +445,7 @@ Object { "content-type": "application/json; charset=utf-8", "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, "vary": "Accept-Version, Origin, Accept-Encoding", + "x-cache-invalidate": "/*", "x-powered-by": "Express", } `;