Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset hashes or versioning #351

Open
zladuric opened this issue Mar 7, 2022 · 0 comments
Open

Asset hashes or versioning #351

zladuric opened this issue Mar 7, 2022 · 0 comments

Comments

@zladuric
Copy link

zladuric commented Mar 7, 2022

Hello,
Is there a way to create asset hashes or something similar in content names? I want to cache css and js files, but I can't do that unless I somehow address it. I've tried searching without success: is there an option, an API, a plugin that does this? So that when I have a script block like this:

script(src=contents.js['main.js'].url)

...that it generates the output similar to this:

<script src="main.<CONTENT_SHA>.js"></script>

...or something similar to that? Timestamps, version numbers, anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant