routify.dev icon indicating copy to clipboard operation
routify.dev copied to clipboard

Include hash in main.js filename

Open benmccann opened this issue 5 years ago • 3 comments

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 :smile:

benmccann avatar Jul 24 '20 15:07 benmccann

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

ghostdevv avatar Mar 25 '21 23:03 ghostdevv

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

benmccann avatar Mar 26 '21 01:03 benmccann

Ah, @jakobrosenberg

ghostdevv avatar Mar 26 '21 09:03 ghostdevv