Disabling browser cache

120 views
Skip to first unread message

Rustem

unread,
Jun 19, 2015, 2:05:35 AM6/19/15
to tiddl...@googlegroups.com

My setup:

  • Firefox on Windows desktop
  • Node.js
  • Content wikis “work” and “home”, each includes a “base” edition wiki which contains all my customizations.
  • I don’t serve the base edition separately. When I need to modify any customizations, I just do it from “work” or “home”, and then restart the other one so it picks up the changes.

I was noticing that even after a restart of tiddlywiki and a page refresh in the browser, I would still see a previous version of a tiddler that I edited in the other wiki. A second page refresh would then bring up the updated version.

Here’s a tiddler I created to disable caching and it seems to have helped:

tags: $:/tags/RawMarkup
title: HTTPHeaders
type: text/vnd.tiddlywiki

<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="cache-control" content="no-store" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />

Jeremy Ruston

unread,
Jun 19, 2015, 4:00:09 AM6/19/15
to TiddlyWiki
Hi Rustem

Interesting, I've not encountered this before. It may be worth making a github ticket for a more flexible solution: to modify server.js to enable cache headers to be explicitly specified in tiddlywiki.info.

Best wishes

Jeremy.



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/52dff807-72dc-4d9f-a2c0-09aec894ec05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Rustem

unread,
Jun 22, 2015, 3:00:20 PM6/22/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages