[ewiki] Re: Custom link formats

Mike Payson <mpayson@xxxxxxxxxxxx> wrote:
> I was wondering whether you had made any further progress on your version of 
> this script. I've been sidetracked on other projects for the last couple of 
> weeks, so mine stands as it was in my last email. Before I put any more time 
> into mine, I thought I'd check the status of yours. 

Hadn't done anything on this, as it seemed to work fine (though a non-SQL
database, cookies.txt-like would be nice). I however made a companion
script, which automatically converts .ico into .png graphics, because
I fear that many browsers won't support Windows icons all too well (at
least not in the page bodies).
However, neither BerliOS nor SFnet won't host such a thing (a pure PHP
URL proxy), and it isn't ready for distribution yet (me looking for some
sort of "Anti-GPL" first; different story...)

I however see a problem with your version as it stood. It will suffer
from a bug that's also in ewikis' binary store implementation. Whenever
you transfer files (and binary ones especially) from a PHP script,
browsers and proxies are unable to cache it, because it lacks mandatory
fields (ETag, Last-Modified).
ewiki sends those for pages, and a few for the binary entries; but what's
still missing is support for "conditional HTTP requests" (which is how
browser caches' work). All you basically have to do is check for a
"If-Modified-Since" HTTP request header. There is a "plugins/lib/speed"
which adds that for text pages, but in ewiki it really was needed with
the ?binary=... code.
Stupidly I broke it with my last attempt. High priority though, and
would warrant the next major release (together with working postgres
support of course *hint,hint*).

mario

Other related posts: