The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniWeb Bug Reports (http://forums.omnigroup.com/forumdisplay.php?f=27)
-   -   Caching issues (http://forums.omnigroup.com/showthread.php?t=1767)

RCanine 2006-09-26 06:56 AM

Caching issues
 
I'm working on a local web server, i.e. /Library/Webserver/Documents/ == [url]http://www.example.com/[/url]

When I change a file on this server, and reload the http address, the changes do not appear. If I change an image, this problem is even worse.
Flush the Cache. Command+R seventeen times. No change.

Open up the image in preview. Open it up via the file protocol. Open the URL in Firefox—all of these reflect the change.

Reload #18: No change.

Firefox has a "Force Reload" option, shift+command+R that automatically bypasses the cache. A similar option would be nice. Or at least make Flush Cache work.

This is a major issue with development use of OW.

(thanks for the great work so far though)

zottel 2006-09-26 07:59 AM

Hmm … I haven't seen this behavior on my local webserver yet. Just tested replacing a picture with another of the same name, and a simple reload works.

Maybe you have configured OW but not Firefox to use a proxy server? That's the only explanation that comes to my mind at the moment. ;-)

Forrest 2006-09-26 08:13 AM

I've seen lots of caching issues with 5.5 on remote web servers. 5.1.3 doesn't have these issues.

RCanine 2006-09-26 09:47 AM

Double checked—no proxy server. I am using OW 5.5 (v607). I have the "Validate cached content" set to "Automatic" and I really don't want to change that for the rest of the Web.

Len Case 2006-09-26 10:55 AM

I'm not certain we got the "Validate cached content" setting working in 5.5--at least not for browsing (it might work for bookmark change checking since it still uses our old networking code instead of Apple's).

I don't think anything cached should be able to survive flushing the cache and reloading--could your webserver be caching in some way?

RCanine 2006-10-03 10:22 AM

[QUOTE=Len Case]I don't think anything cached should be able to survive flushing the cache and reloading--could your webserver be caching in some way?[/QUOTE]

Were the web server caching the file, wouldn't my results be similar in both Firefox and OmniWeb?

zottel 2006-10-05 12:38 PM

[QUOTE=Forrest]I've seen lots of caching issues with 5.5 on remote web servers. 5.1.3 doesn't have these issues.[/QUOTE]

Including a press on the reload button? Hm. That has always worked for me.

Forrest 2006-10-05 01:10 PM

[QUOTE=zottel]Including a press on the reload button? Hm. That has always worked for me.[/QUOTE]

Even hitting reload 20 times, it still pulls from cache.

ibeatty 2006-11-16 02:21 AM

Greetings.

A web browser can actually send (at least) two different kinds of GET requests, and one instructs the server to flush caches and regenerate the content. (I forget the HTTP codes.) FireFox sends this "give me a fresh copy, dammit!" code when you use shift-command-(reload menu item). I think Safari might do it if you reload twice in a row, but I'm not 100% certain about that.

I discovered this when I ran into a caching problem that sounds similar to the one that started this thread. I was doing through-the-web authoring with the Plone content management system, and images I'd uploaded to replace others weren't displaying properly; the old image was still being sent (though at the new image's dimensions, which was a bit strange). I eventually convinced myself that it wasn't being cached on my local machine, by trying from multiple browsers and machines. But if I used FireFox's shift-command-reload, *bing* the server bypassed its own cache and the new image was displayed. I verified this interpretation by solving the same problem another way, going to the server's control panel and making it dump all its caches. I also looked at the server logs in detail, and noticed that a different request came in.

And that little feature makes Firefox very, very handy for authoring/development with servers that do any server-side caching, or when you have a caching proxy anywhere between you and the server. It would be a great feature to have in OmniWeb.

HTH,
:ian

derekJAB 2006-11-16 04:37 AM

[QUOTE=Forrest]Even hitting reload 20 times, it still pulls from cache.[/QUOTE]
Does that mean there is no point in setting my preferences to:
Validate cached content "Always"?

Always wondered why OW was telling me I'm not connected to the internet when I am.


All times are GMT -8. The time now is 10:58 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.