[tw] Caching question

2 views
Skip to first unread message

Nicolas Syssoieff

unread,
Feb 20, 2008, 8:56:57 AM2/20/08
to tiddlywiki
Hi guys,

A question regarding browser's cache (specially Firefox)

I encountered the following scenario :
- create a new tiddler, and save it.
- save the TW online on Tspot.
- double click on Firefox tab bar to close the tab.
- reopen last closed tab (either by firefox menus or double-click in the tab bar empty space)
- the TW comes back without my new tiddler, because it's using the cached value, instead of downloading the page from Tspot again.

Is there any way to avoid that ? Could the TW page (possibly with an on/off toggle) be excluded from cache completely, so that it always reloads the latest version when refreshing ?

Thanks,
Nicolas.

Simon Baird

unread,
Feb 20, 2008, 9:12:09 AM2/20/08
to Tiddl...@googlegroups.com
It's a good point. And a very common annoyance with Tiddlyspot users. I think I could put in some http headers that would direct browsers not to cache. But I've got the idea that for someone publishing a site that might be viewed by many people it's not ideal to force the browser to never cache for all users viewing the site. Do you mean on/off toggle via the control panel? Maybe a cookie can be used to control the cache expiry but I'm not certain how it would work. I will give it some thought. Another possible solution is to force a reload on every save as someone else was discussing in another thread.
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/17ade817a9829f85

Simon.

--
simon...@gmail.com

FND

unread,
Feb 20, 2008, 9:21:59 AM2/20/08
to Tiddl...@googlegroups.com
> for someone publishing a site that might be viewed by many people it's
> not ideal to force the browser to never cache for all users

Good point - I've added this warning to the page on the community wiki:
http://www.tiddlywiki.org/wiki/Caching


-- F.

Nicolas Syssoieff

unread,
Feb 20, 2008, 9:33:51 AM2/20/08
to Tiddl...@googlegroups.com
Hi Simon,

Thanks for this answer.
Yes I thought of an on/off toggle in the control panel somewhere, allowing people who want the no-cache option to have it, without impacting, as you indeed noted, the "public-type" TWs. But I have no idea how this can be implemented.

Thanks for pointing me in the direction of SaveAndReloadMacro, I guess this could do the trick as a mitigation solution.

Cheers,
Nicolas.

Xavier Vergés

unread,
Feb 20, 2008, 10:08:59 AM2/20/08
to TiddlyWiki
A param in the GET request?

-Xv
> in another thread.http://groups.google.com/group/TiddlyWiki/browse_thread/thread/17ade8...
>
> Simon.
>
> --
> simon.ba...@gmail.com
Reply all
Reply to author
Forward
0 new messages