diff --git a/ghost/core/core/server/api/endpoints/slugs.js b/ghost/core/core/server/api/endpoints/slugs.js index f423824061..cd381d7815 100644 --- a/ghost/core/core/server/api/endpoints/slugs.js +++ b/ghost/core/core/server/api/endpoints/slugs.js @@ -16,7 +16,7 @@ module.exports = { docName: 'slugs', generate: { headers: { - cacheInvalidate: true + cacheInvalidate: false }, options: [ 'include', diff --git a/ghost/core/test/e2e-api/admin/slugs.test.js b/ghost/core/test/e2e-api/admin/slugs.test.js index c939764bc8..8de1f3b9b0 100644 --- a/ghost/core/test/e2e-api/admin/slugs.test.js +++ b/ghost/core/test/e2e-api/admin/slugs.test.js @@ -20,7 +20,7 @@ describe('Slug API', function () { .expect('Cache-Control', testUtils.cacheRules.private) .expect(200); - should.exist(res.headers['x-cache-invalidate']); + should.not.exist(res.headers['x-cache-invalidate']); const jsonResponse = res.body; should.exist(jsonResponse); should.exist(jsonResponse.slugs);