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

Include hash in main.js filename #164

Open
benmccann opened this issue Jul 24, 2020 · 3 comments
Open

Include hash in main.js filename #164

benmccann opened this issue Jul 24, 2020 · 3 comments

Comments

@benmccann
Copy link
Contributor

All the JS files on the site have a hash in their name except for main.js. It'd be nice if this one could also have a hash in its name. Then you could set a long-lived cache expiration on all the JS files. I normally use routify.dev as my example of how a Routify site should be setup since it's the most obviously maintained, high profile, and open source example that I'm aware of, so it'd be great to have as many best practices on it as possible 😄

@ghostdevv
Copy link
Member

Heya! If this is still relevant can you tell me more about what you mean? @benmccann

@benmccann
Copy link
Contributor Author

I mean like main.ac5328e.js so that the filename changes when the contents change and the file can be cached forever

@ghostdevv
Copy link
Member

Ah, @jakobrosenberg

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

2 participants