[josm-dev] JOSM Server
Simon Legner
simon.legner at gmail.com
Mon Mar 18 17:31:48 UTC 2013
Hi again,
On Mon, 2013-03-18 at 17:46 +0100, Dirk Stöcker wrote:
> Some of these are pregenerated files (thought delivered dynamically,
> like
> maps, presets, styles, plugins, ...).
Concerning these half-static-half-dynamic files, I guess there's room
for improvement:
$ time curl --head josm.openstreetmap.de/maps
HTTP/1.1 200 OK
Date: Mon, 18 Mar 2013 17:08:23 GMT
Server: Apache/2.2.22 (Ubuntu)
Content-Length: 724464
Set-Cookie: trac_session=603f076682dea5716e375da9; expires=Sun,
16-Jun-2013 17:08:24 GMT; httponly; Path=/
Vary: Accept-Encoding
Content-Type: text/plain;charset=utf-8
real 0m1.632s
user 0m0.007s
sys 0m0.003s
This is over one second for shipping the header of an XML file which is
updated every once in a while [1].
What about re-generating this file on modification and shipping as fast
as possible (using Apache directly, Nginx or Varsnish). Maybe, having a
subdomain for static content might be worth a try (getting rid of
cookies, sessions etc.).
Cheers,
Simon
[1] http://josm.openstreetmap.de/wiki/Maps?action=history
More information about the josm-dev
mailing list