ensingm2 / SteamMonsterGameScript

A Javascript automator for the 2015 Summer Steam Monster Minigame
78 stars 29 forks source link

slaveWindows.js being cached by UserScript and not updating #59

Closed ensingm2 closed 9 years ago

ensingm2 commented 9 years ago

Current workaround is to delete/reinstall the userscript, but that's a huge pain in the ass. If anyone knows a better way to force it to update, please let me know.

AlinaNova21 commented 9 years ago

Maybe try adding a querystring to the end of the url? Its a trick i've used in pure html to force cacheless load. (It can be a static querystring, just it being there is usually enough)

ensingm2 commented 9 years ago

Are you sure a static query works? In my experience with that workaround you generally need to send it rand or a timestamp or something.

since it's a UserScript include, it MUST be static.

waterfoul commented 9 years ago

The querystring will work as ling as you change it every time the slaveWindows.js changes

ensingm2 commented 9 years ago

Good point. I'll add it in next time that script changes (if it does) since it hasn't been updated in a while and any current caches are most likely up to date. Closing this issue.