Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Stop bottle from caching files
-
Hi,
I'm using
bottle
to serve web pages that load javascript libraries, html and css.It works fine most of the time. However, when I make modifications to the pages it regularly fails to reload the files.
Sometimes the caching appears to persist even when I kill Pythonista and restart.
When starting
bottle
I am doing so with:bottle.TEMPLATES.clear() run (host='localhost', port=8088, debug=True, quiet=False)
The debug code clearly shows that it is not reloading the files that I have changed.
I've tried serving the files with both
static
andtemplate
but it makes no difference.I've executed the same code on my PC and it clearly picks up the modified files.
Is there a way I can stop
bottle
doing any sort of caching? Or is there some kind of Pythonista bug here?My suspicion is that I have a old process of bottle running that refuses to die. I will try a hard reset of my Ipad.
I'm almost at the point of installing my own version of
bottle
and hacking the code to stop it from caching.All help greatly appreciated!
Thanks
-
Very strange. Even a hard reset wouldn't resolve the issue.
However, when I changed the port to a new one. It reloaded all the files and worked!