Coder Social home page Coder Social logo

Comments (6)

aatishb avatar aatishb commented on May 16, 2024 1

Happy to do it manually as well if it's simpler. Right now it's nice (at least from my perspective) that we don't need to compile or build anything.

So if I understand this correctly, all that's need is to add a ?number to the end of all the updated files linked in index.html? i.e. linked javascript and css files? Let's try to do this on future updates.

from covidtrends.

arjo129 avatar arjo129 commented on May 16, 2024

There seem to be several solutions.
https://stackoverflow.com/questions/1922910/force-browser-to-clear-cache

from covidtrends.

aatishb avatar aatishb commented on May 16, 2024

changing title as it seems this affects other browsers as well

from covidtrends.

edg2s avatar edg2s commented on May 16, 2024

+1 to adding a query string version number. This is used by Wikipedia, for example.

It will however require a version number increment commit each time you deploy a new asset.

<script src="foo.js?27">

from covidtrends.

arjo129 avatar arjo129 commented on May 16, 2024

We might want to have some form of automation for this?

from covidtrends.

aatishb avatar aatishb commented on May 16, 2024

Closing. Adopting the approach were we add a ?number to updated linked .css & .js files

from covidtrends.

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.