[Tilecache] ETag/Last-Modified or mod_expires

Alexandre Dube adube at mapgears.com
Thu Nov 5 15:56:18 EST 2009


Hi Mark,

  Thanks a lot for taking the time to answer me.

  I'm currently trying the "curl" command with the different 
possibilities you proposed but none of them showed the "Expires" tag...  
still scratching my head...

Alexandre

Mark Deneen wrote:
> Alexandre,
>
> #curl -I http://www.example.com/some/url
>
> HTTP/1.1 200 OK
> Content-Type: image/png
> Expires: Wed, 12 May 2010 07:36:42 GMT
> Content-Length: 18154
> Date: Thu, 05 Nov 2009 19:36:42 GMT
> Server: lighttpd/1.4.23
>
> Here, you can see the expires tag is set.  To know if X-SendFile is
> active is a little harder, as the headers sent to the browser will not
> indicate anything because the SendFile magic happens between TileCache
> and the web server.
>
> If you have SendFile enabled in TileCache, you can try disabling
> SendFile in Apache, and see what happens.  If Apache support is
> disabled, I believe you should see the X-SendFile header in the response
> because Apache does not handle it.
>
> You may need both  
>
> XSendFile on
> XSendFileAllowAbove on
>
> in your apache configuration.
>
> Mark
>   



-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Tilecache mailing list