Metadata in zope / binary data on FS,
was Re: [ZODB-Dev] __del__ with Persistent objects
Toby Dickenson
tdickenson at geminidataloggers.com
Wed Jul 23 19:11:39 EDT 2003
On Wednesday 23 July 2003 17:48, you wrote:
> Toby Dickenson wrote:
> > Zope responds to Squid with 304 Not Modified (unless the file really has
> > changed)
>
> This doesn't cause Zope to check any authentication?
er, yes. thats the point of it ;-)
ZPublisher responds "401 Unauthorised" if the authorization fails, and squid
will return that to the client.
If ZPublisher authorizes the request, Zope's File instance will check the
If-Modified-Since request header and return either:
"200" plus the file body, if it has changed. Squid caches it
plus the Last-Modified header (ready for next time), and
feeds it back to the client.
or
"304 Not Modified", but *not* the file body. Squid reads the file
body from its cache and sends it direct to the client.
--
Toby Dickenson - http://www.geminidataloggers.com/people/tdickenson
Want a job like mine? http://www.geminidataloggers.com/jobs for Software
Engineering jobs at Gemini Data Loggers in Chichester, West Sussex, England
More information about the ZODB-Dev
mailing list