Skip to content

Appending hash to imported files name #40

Description

@alexbidenko

Background

When we use nuxt assets file import, in production mode nuxt appending file hash to files name. It is very useful because browser can understand when file has changed by filename - it is necessary for right caching for example.

But nuxt-content-assets plugin copy files only and do not append hash to its names. If I have used browser cache mechanism (for example by cache-control header) and then will have changed file (but not filename) - in browser I will have seen old image.

Proposal

It would be great if nuxt-content-assets added a hash of files to its filename (maybe with some enabled option in nuxt.config).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions