Ticket #943 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[TiddlyWeb] docs - would like to know how to cause etags to update when editing the store in place

Reported by: jayfresh Owned by: cdent
Priority: undefined Milestone:
Component: tiddlyweb Version:
Severity: undefined Keywords: tiddlyweb documentation cache
Cc:

Description

When editing tiddlers in the store directly, this doesn't seem to trigger a cache refresh when building a tiddlywiki, even though they show up changed if you browse through the store.

Please explain how to force a cache refresh.

Change History

Changed 4 years ago by cdent

  • summary changed from [TiddlyWeb] docs - would like to know how to force a cache refresh to [TiddlyWeb] docs - would like to know how to cause etags to update when editing the store in place

When TiddlyWeb presents content to a browser it sends it with an Etag. This Etag is then used by the browser to validate future requests to see if it can use what's in its cache. The Etags are calculated from the metadata of the tiddlers (title, modified time, revision number), which don't get changed when you edit them in place in the store.

To force the Etag to change you need to do one or two things, depending on how you are accessing the Tiddler or Tiddlers:

  • If you are most concerned with forcing the wiki that is generated to update, change the modified field on the tiddler
  • If you want to make sure that the individual tiddler will reload in the browser, save your changes as a new revision (i.e. if you loaded 1, write it as 2).

In most cases it is the first thing that will matter.

I'll leave this ticket open as a reminded to add to tiddlyweb.peermore.com

Note: See TracTickets for help on using tickets.