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

Support cache busting #1

Open
rnk opened this issue Apr 18, 2009 · 3 comments
Open

Support cache busting #1

rnk opened this issue Apr 18, 2009 · 3 comments

Comments

@rnk
Copy link
Owner

rnk commented Apr 18, 2009

A timestamp should be added to the generated filename or a query parameter to the URL to force the browser to refetch the bundle if it updates. I kind of like only having one file around and just diffing against it when the bundle is generated, so I’m leaning towards the query parameter. It’s still annoying because we have to track the version, and I’m not sure how to do that easily.

@peritus
Copy link

peritus commented Apr 18, 2009

You could use a hash instead of a timestamp..

@rnk
Copy link
Owner Author

rnk commented Apr 19, 2009

Yeah, I looked over at django-compress and that’s what they do. I just pushed a first pass at adding it in. Unfortunately, the whole project needs tests, so all I can say is that it “works for me” so far.

@jneves
Copy link

jneves commented Feb 4, 2012

I changed the behaviour to avoid the file copies and maintain the cache busting behaviour:

SimpleTax@66af89e

Feel free to pull.

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

3 participants