betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

28 February 2007

Zwiki "Conditional HTTP GET" handling

On on zwiki.org...
 

Today a new development version of Zwiki code went online on zwiki.org (and related sites). This version has the ability to handle "If-modified-since" based "conditional HTTP GET" requests. The result? A bunch of much, much snappier Zwiki sites.

Based on my previous work on my COREBlog, I had hacked 304 handling (as "conditional HTTP GET" is often refered too, after the 304 status response the server may send back) into the Zwiki code. There are even setup instructions online. Links with more explanation about "conditional HTTP GET" at the end of that page. It's really easy to do in Zope, standard "Image" objects even do this out of the box.

The RFC says that the server "SHOULD" implement "conditional HTTP GET" using ETags together with If-Modified-Since. But I believe for Zwiki it doesn't make sense to implement that, since calculating a checksum on the page would require the page to be rendered for each request. That's exactly what we try to avoid to steer clear of the limited RAM problem on zwiki.org. The "Last-Modified" time is cheap to get and works fine most of the time.

Simon also made some changes to the ZEO and ZODB cache setup on the zwiki.org site. All together, the result is that the sites on zwiki.org feel much faster. This is in part to the browser taking pages from cache, and also in part to the overall load on the server being reduced.


Posted by betabug at 23:25 | Comments (0) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< Someone Smashed my Car! | Main | Umzug demnächst >>
Comments
There are no comments.
Trackbacks
You can trackback to: http://betabug.ch/blogs/ch-athens/559/tbping
There are no trackbacks.
Leave a comment