Re: OnlineOptions ignored
amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] (Andrew M. Bishop)
| Newsgroups | gmane.network.wwwoffle.user |
|---|---|
| Message-ID | <[email protected]> |
Andreas <wer.schon-S0/[email protected]> writes: > I have tried to achieve that cached pages are requested only if the cached > version is older than specified (500 minutes) and fetched only if they have > changed. A few specific pages are not to be re-requested at all. I have set > the OnlineOptions accordingly (so I thought). > > What happened was: > - pages are re-fetched from the server though the cached version is newer than > specified, even twice (or more) per session. > - unchanged pages are downloaded again (and again and again). > > Apparently the settings in this section are completely ignored. I have not > been able to figure out what went wrong. Has anyone encountered a similar > problem (and found a solution to it)? Could this problem be browser-related? > I am using wwwoffle 2.8a and konqueror. The only way to be sure what is happening is to get some debugging output from WWWOFFLE when you are online. This will tell you the reason that WWWOFFLE decided that it was a good idea to go and get a new version of the page. The way to get the debugging output is described in the FAQ. > OnlineOptions > { ... > pragma-no-cache = yes > > cache-control-no-cache= yes > > request-changed = 500m > > request-changed-once = yes > > request-expired = no > > request-no-cache = no > > request-redirection = no > > request-conditional = yes ... > } The options that you have chosen look correct for what you are trying to do. The age for re-requesting is 500 minutes and you have disabled re-fetching of pages that are expired or contain headers saying they are not to be cached. You have even chosen the option to request each page only once during an online session. The only option that I can think might be causing the problem is the pragma-no-cache option (and the unspecified cache-control-no-cache option that also defaults to 'yes'). These two options will mean that if the browser asks for a forced refresh of the page then WWWOFFLE will do it. It is possible that the browser is asking for a forced refresh. Does it happen with all pages or only certain ones? Is the problem related to selecting from your bookmarks (some browsers will do a forced refresh of bookmark pages)? -- Andrew. ---------------------------------------------------------------------- Andrew M. Bishop amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] http://www.gedanken.demon.co.uk/ WWWOFFLE users page: http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html