[mapguide-internals] RCF 75 - Adding caching support to GETTILEIMAGE

Zac Spitzer zac.spitzer at gmail.com
Tue Jan 11 06:56:18 EST 2011


having played some more with Amazon's cloudfront CDN for
http://www.exploreaustralia.net.au some additional thoughts

headers:
cache-control (public, private, must-revalidate )
last-modified : tile date (etag's require additional i/o and aren't so
cache portable)
expires: GMT date or cache-control max-age=seconds

with a proxy out front of MapGuide, the expiry becomes much more effective

cookies are evil and usually require serving from a cookie less domain

a default set of headers (or none) could be set in serverconfig.ini
and overridden
via the headers xml for the map definition (using exact header values)

Preset groups of recommend header combinations could be added as
an GUI option in Maestro

Using long expiry is good but you need to be able to change urls
if you want to make any changes

On Wed, Jul 8, 2009 at 1:58 PM, Zac Spitzer <zac.spitzer at gmail.com> wrote:
> Maybe then only for anonymous tile requests?
>
> With authenticated requests, the web tier will still need to authenticate
> the request before returning a 304?
>
> z
>
> On Wed, Jul 8, 2009 at 1:29 PM, Trevor Wekel<trevor_wekel at otxsystems.com> wrote:
>> Hi Zac,
>>
>> I think you will also have to move the SESSION, USERNAME, and PASSWORD url parameters into HTTP headers.  For most caching implementations the url has to be identical.
>>
>> Thanks,
>> Trevor
>>
>> -----Original Message-----
>> From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
>> Sent: Tuesday, July 07, 2009 9:22 PM
>> To: MapGuide Internals Mail List
>> Subject: [mapguide-internals] RCF 75 - Adding caching support to GETTILEIMAGE
>>
>> I have posted RFC 75 for review
>>
>> http://trac.osgeo.org/mapguide/wiki/MapGuideRfc75
>>
>> z
>>
>> --
>> Zac Spitzer -
>> http://zacster.blogspot.com
>> +61 405 847 168
>> _______________________________________________
>> mapguide-internals mailing list
>> mapguide-internals at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>>
>>
>> _______________________________________________
>> mapguide-internals mailing list
>> mapguide-internals at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-internals mailing list