Giter Club home page Giter Club logo

Comments (3)

driskull avatar driskull commented on June 15, 2024

Hey @geospatialem!

You can probably put some sort of random datetime string in the request to break the cache when you want to.

Like this:

<link href="css/common.css?version=1.0" rel="stylesheet" type="text/css" />

You can also use dojo's cacheBust to make all module loads not be cached.

https://dojotoolkit.org/documentation/tutorials/1.10/dojo_config/

or put the param in the module require

"application/common?version=1.0",

https://github.com/Esri/map-gallery-template-js/blob/master/javascript/home.js#L12
https://github.com/Esri/map-gallery-template-js/blob/master/javascript/map.js#L14

-Matt

from map-gallery-template-js.

geospatialem avatar geospatialem commented on June 15, 2024

@driskull Thank you for the references to common.js in the javascript/home.js and javascript/map.js files!

We were doing a search for "common.js" and were coming up empty (since searching "common" was giving us way more than we bargained for).

And thanks for the dojo reference and documentation to cacheBust, that is super handy!!

Do you think it be worthwhile to add in some context to the README.md for others trying to see how the common.js file is dynamically added in, or do you think that's overkill? I can put together a PR if you and your colleagues see an added benefit.

Thanks for getting back to us so quickly!!

from map-gallery-template-js.

driskull avatar driskull commented on June 15, 2024

Sure, that would be helpful 👍

from map-gallery-template-js.

Related Issues (11)

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.