Static GitHub Issues

[378] nuxt.config.js doesn't support http-equiv for meta

prev: Webpack config - watchOptions
next: Why is port 3000 used?

Hi, I am trying to add some http-equiv while developing:

  head: {
    htmlAttrs: { prefix: 'og: http://ogp.me/ns#' },
    title: 'title',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { name: 'description', content: "some" },
      { name: 'msapplication-config', content: '/favicon/browserconfig.xml' },
      { name: 'theme-color', content: '#ffffff' },
      { http-equiv: 'cache-control', content: 'max-age=0' },
      { http-equiv: 'cache-control', content: 'no-cache' },
      { http-equiv: 'expires', content: '0' },
      { http-equiv: 'expires', content: 'Tue, 01 Jan 1980 1:00:00 GMT' },
      { http-equiv: 'pragma', content: 'no-cache' }
    ],
  }

it gives an error on npm run dev:

http-equiv: 'cache-control', content: 'max-age=0',
    ^
SyntaxError: Unexpected token -
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c326">#c326</a>)</em></sub></div>