[Tilecache] ETag/Last-Modified or mod_expires [solved]

Alexandre Dube adube at mapgears.com
Fri Nov 6 09:52:51 EST 2009


List,

  I had an other 2.10 TC version installed in my system conflicting with 
my trunk version of TC.  Removing it and fixing some apache 
configuration settings showed that the X-SendFile works perfectly with 
current trunk version.

  Special thanks to Mark for his help,

Alexandre

Alexandre Dube wrote:
> 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