-
Hi! We just apply the module to our website, but the function seems failed because of CloudFront CDN. The module is really a life-saver! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We're using nuxt in server-side-mode (so not spa nor generate), our configuration looks like this one: // nuxt.config.js
export default {
pruneHtml: {
hookGeneratePage: false,
types: [ 'headers-exist' ],
headersToPrune: [
{
key: 'cloudfront-is-bot-viewer',
value: 'true',
},
{
key: 'cloudfront-is-audit-viewer',
value: 'true',
},
],
},
}
}; Also, our DevOps team is setting this 2 additional headers with Cloudfront:
So, as you can see in the Some resources about Cloudfront Headers:
|
Beta Was this translation helpful? Give feedback.
We're using nuxt in server-side-mode (so not spa nor generate), our configuration looks like this one:
Also, our DevOps team is setting this 2 additional headers with Cloudfront:
cloudfront-is-bot-viewer
;cloudfront-is-audit-viewer
.So, as you can s…