Giter Site home page Giter Site logo

Comments (5)

LukasReschke avatar LukasReschke commented on May 4, 2024

FYI @jancborchardt, just experienced this when I migrated https://cloud.nextcloud.com/

from server.

LukasReschke avatar LukasReschke commented on May 4, 2024

I wonder if we can easily do this via some Javascript: Parse for all image links in core/ and append a ?version=. Mhm…

from server.

LukasReschke avatar LukasReschke commented on May 4, 2024

Something like http://www.bennadel.com/blog/2643-cache-busting-css-images-with-less-css.htm would really help. Using http://lesscss.org/#client-side-usage we could also do this so that developers don't need any additional tools and do the compilation as packaging step.

from server.

LukasReschke avatar LukasReschke commented on May 4, 2024

Assigning @jancborchardt, either cough cough somebody cough cough needs to add the version strings manually to all images in the CSS files and change them all the time we change an image…

Or we switch to something like LessCSS that does this for free.

from server.

ChristophWurst avatar ChristophWurst commented on May 4, 2024

I wonder if we can easily do this via some Javascript: Parse for all image links in core/ and append a ?version=. Mhm…

I assume that might cause the browser to download the images twice. First, the HTML/CSS is parsed and the browser starts downloading files without any cache buster (the original URL). At some point the JS kicks in and modifies all core image URLs. As the browser might already download some images, those are downloaded a second time as the URL changed.

from server.

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.