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

Append hash to generated file #6

Open
jgallen23 opened this issue Apr 25, 2011 · 4 comments
Open

Append hash to generated file #6

jgallen23 opened this issue Apr 25, 2011 · 4 comments

Comments

@jgallen23
Copy link

It would be nice to have a hash appended to the generated file so for caching purposes when serving the files for web. The hash would only change if the contents of the file change, so you could, theoretically, put an infinite caching time on all js/css assets.

Thoughts?

@ded
Copy link
Collaborator

ded commented Apr 26, 2011

Maybe as an option. Seems like a decent idea.

@masylum
Copy link

masylum commented Jul 16, 2011

+1

@dawnerd
Copy link

dawnerd commented Jul 17, 2011

It would be nice if the generated hash was stored in the config file as well so it can be used within an app.

@mwawrusch
Copy link

+1
Please take a look at https://github.com/sstephenson/sprockets how they handle hash and storage of hash. It took them a long time to nail it and this is one of the things that are really well done in rails.

The important thing, as dawnerd said, is to create a config file containing the mappings from css name to hashed name, but please don't modify the existing one.

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

5 participants