Coder Social home page Coder Social logo

Comments (7)

kbrownlees avatar kbrownlees commented on July 3, 2024 1

For me I use ManifestStaticFilesStorage for cache breaking, but since sass processor generates its own url the cache break cannot occur.

Would be good if the same logic as https://github.com/django/django/blob/master/django/templatetags/static.py#L111 could be applied? Then the storage still gets called and the correct cache broken url can be generated.

Edit: this gist demonstrates what I mean (and works for me - pretty hacky though!): https://gist.github.com/kbrownlees/83c0cf172c145c43c2925412a2d37caf

from django-sass-processor.

bblanchon avatar bblanchon commented on July 3, 2024 1

I'm using ManifestStaticFilesStorage with Django 2.1.1 and django-sass-processor 0.7.1.
As far as I can tell, everything works as expected 👍

from django-sass-processor.

jrief avatar jrief commented on July 3, 2024

Could you please explain its benefits in this context.

from django-sass-processor.

jrief avatar jrief commented on July 3, 2024

Thanks. I have to familiarize with it, so please be patient.

from django-sass-processor.

pegler avatar pegler commented on July 3, 2024

it looks like the change in v0.5.6 resolved this issue

from django-sass-processor.

awartani avatar awartani commented on July 3, 2024

I am using v0.5.7 and I have this issue, for more information please see:
https://stackoverflow.com/questions/9130555/django-static-files-versioning
https://mike.tig.as/blog/2011/12/22/django-14-first-thoughts-cachedstaticfilesstorage/

from django-sass-processor.

jrief avatar jrief commented on July 3, 2024

Please create a pull request or ask me directly to implement this feature. I currently have no use for it.

from django-sass-processor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.