django-static icon indicating copy to clipboard operation
django-static copied to clipboard

Feature Request: Allow a Custom Nonce Rather than file m_time

Open umbrae opened this issue 14 years ago • 3 comments

Hi there,

We're happy users of django-static, but we've run into a couple problems with our load balanced configuration that would make it a lot easier if we could guarantee that the nonce being used will be the same across all of our boxes.

With that in mind, we figured we could change the nonce to just be our current version number - that way it's replicatable across all boxes, and it still has all of the same benefits of django-static in production.

Would you consider allowing a custom parameter - maybe something like DJANGO_STATIC_CUSTOM_NONCE - that could be set in settings.py and always used instead of file mtime?

Thanks, any thoughts appreciated!

umbrae avatar Apr 20 '11 19:04 umbrae

I replied by email. Did that reach you?

peterbe avatar Apr 21 '11 09:04 peterbe

Hi Peter - I don't think I received anything - maybe try [email protected]?

umbrae avatar Apr 21 '11 12:04 umbrae

I could certainly consider that. As long as the number is suitable in a URL. Also I've decided not to accept pull requests that don't have tests. They might not all pass but please try to include some. Peter

(that's what I wrote in the email reply)

peterbe avatar Apr 21 '11 13:04 peterbe