Working on my Oddmuse:404 Handler Extension ā Iām trying to test a multilingual setup with content negotiation. You can test it:
http://www.emacswiki.org/emacs/pages/
When you browse pages, static copies are used (eg. SiteMap.en or SiteMap.de, depending on your browser preferences). If no static copies are available, the wiki is called as a 404 handler to serve the page, and save a static copy.
The last remaining problem is an extra item in error.log: When I requests a page _wiki_page/CSS, and CSS.en and CSS.de exist, and my browser preferences indicate that I prefer german, then CSS.de is served correctly, but error.log still says:
Negotiation: discovered file(s) matching request: _org_org.emacswiki/htdocs/emacs/wiki/CSS (None could be negotiated).
I wonder what it means. I noticed that the 404 handler is being called all the time, since the timestamp on the static files keeps being changed. How annoying. But I have to sleep. š
Preliminary code:
http://www.emacswiki.org/scripts/404emacs
ā#Wikis