Nuxt.js: nuxt static cached headers

Created on 6 Dec 2017  路  2Comments  路  Source: nuxt/nuxt.js

looking for some help debugging why Google pagespeed is marking all my assets in the static folder as being served without cache headers.

https://ipfs.io/ipfs/QmeXHLfXwT5nhMrjrhzv97Cs7hLi78QPF24qFv6dXEXdu6

https://www.bambee.com/鈥es/market/custom/corrective-actions.png (4 hours)
https://www.bambee.com/鈥ssets/images/market/custom/new-risk.png (4 hours)
https://www.bambee.com/assets/images/market/custom/shield.png (4 hours)
https://www.bambee.com/鈥/images/market/custom/signature-box.jpg (4 hours)
https://www.bambee.com/鈥ets/images/market/icons/purple/book.svg (4 hours)
https://www.bambee.com/鈥mages/market/icons/purple/briefcase.svg (4 hours)
https://www.bambee.com/鈥mages/market/icons/purple/certified.svg (4 hours)
https://www.bambee.com/鈥es/market/icons/purple/do-not-enter.svg (4 hours)
https://www.bambee.com/鈥ages/market/icons/purple/government.svg (4 hours)
https://www.bambee.com/鈥mages/market/icons/purple/handshake.svg (4 hours)
https://www.bambee.com/鈥s/images/market/icons/purple/health.svg (4 hours)

From chrome dev tools,
https://ipfs.io/ipfs/QmcEN3dUC9afdG2YGbyDc6Z6rZGvBrEJssU2nBUrmVdquB

You can see that cache headers are there. Anyone have experience with this or understand what is going on?

This question is available on Nuxt.js community (#c2037)

Most helpful comment

ok. figured it out,

https://nuxtjs.org/api/configuration-render#static

render: {
    static: {
      maxAge: 1000 * 60 * 60 * 24 * 7
    }
  }

All 2 comments

ok. figured it out,

https://nuxtjs.org/api/configuration-render#static

render: {
    static: {
      maxAge: 1000 * 60 * 60 * 24 * 7
    }
  }

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gary149 picture gary149  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

maicong picture maicong  路  3Comments

uptownhr picture uptownhr  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments