Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding hashes to the _payload.js files #15427

@kilobyte2007

Description

@kilobyte2007

Describe the feature

When using a CDN like Cloudflare it's normal to use hashes on .js files in order for the cache to be automatically cleared on redeployment as the file name (and the hash) changes.

Now it's not really possible to do that so it's hard to manage re-deployment as we have to manually clean the cache each time. At least that's what I see from the docs.

It would be nice if Nuxt would generate the payload files with a hash, like this: _payload.{hash}.js by default. Or at least an option to specify the file name would be nice to have.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions