Skip to content

Prune Html failed because of CDN #54

Answered by LuXDAmore
may7243 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • cloudfront-is-bot-viewer;
  • cloudfront-is-audit-viewer.

So, as you can s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@may7243
Comment options

Answer selected by LuXDAmore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #53 on November 03, 2022 11:34.