Comments (3)
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.
@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.
Sure, that would be helpful 👍
from map-gallery-template-js.
Related Issues (11)
- New features HOT 6
- Missing the location pointer when using geocoding (adress locator) HOT 3
- Should this work with a Web AppBuilder app hosted on AGOL? HOT 2
- filter type only work for one type HOT 1
- Proxy Help HOT 3
- Login in public gallery doesn't work in IE11 HOT 1
- Add support for Tags to configure the gallery HOT 1
- Only use geocoders... that allow placefinding? HOT 4
- Support other click behaviors for gallery items HOT 3
- Adding Print Button to map.html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from map-gallery-template-js.