[Geoprisma-dev] Caching for the Proxy
Yves Moisan
yves.moisan at boreal-is.com
Tue Dec 15 12:33:49 EST 2009
> Changes made according to the discussion. Please review.
Hi Alexandre,
Thanx for your patch.
Do you happen to know of software that would allow me to view all the
diffs in a patch on a side by side display ?
src/server/core/org/geoprisma/* all have reference versions in SVN I'd
like to compare with but on a side by side rather than sequential
manner.
The only thing I found is to use Meld (requires 2 files) so that means I
svn revert all files I want to compare yours to, make a copy of those
and then apply your patch so I get two physical files I can view in
Meld. There must be a simpler way. About your patch now.
>
> http://trac.osgeo.org/geoprisma/ticket/30#comment:4
Observations (cleaning my browser cache each time) :
Response headers *with* TC caching -- org_geoprisma_SettingImpl::setTileCacheProxyCaching(true); :
Date Tue, 15 Dec 2009 17:03:52 GMT
Server Apache/2.2.11 (Unix) PHP/5.2.8
X-Powered-By PHP/5.2.8
Pragma public
Cache-Control maxage=2419200
Expires Tue, 12 Jan 2010 17:03:53 GMT
Content-Length 7765
Keep-Alive timeout=5, max=97
Connection Keep-Alive
Content-Type image/jpeg
Works fine. AJAX requests get issued only once per zoom level per
viewport.
Response headers *without* TC caching --
org_geoprisma_SettingImpl::setTileCacheProxyCaching(false); :
Date Tue, 15 Dec 2009 17:06:11 GMT
Server Apache/2.2.11 (Unix) PHP/5.2.8
X-Powered-By PHP/5.2.8
Pragma public
Cache-Control maxage=2419200
Expires Tue, 12 Jan 2010 17:06:11 GMT
Keep-Alive timeout=5, max=98
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type image/jpeg
The only way to get different response headers is to set both
setProxyCaching and setTileCacheProxyCaching to false (maybe because TC
caching inherits from proxy caching ?). Then one gets :
Date Tue, 15 Dec 2009 17:22:31 GMT
Server Apache/2.2.11 (Unix) PHP/5.2.8
X-Powered-By PHP/5.2.8
Content-Length 973
Keep-Alive timeout=5, max=98
Connection Keep-Alive
Content-Type image/jpeg
However, no matter how I set the three set*Caching directives in
common.php, at one point tiles get cached in the browser. It does not
seem possible to have AJAX requests for images on every zoom in/out
action, which is what I would expect if all flags were set to false.
Also, did you have anything special to do with your TileCache. IIRC at
one point you raised an issue ??
I'll be coming back with a few patches of my own soon and also on the
workspace issue. And oh yes : I haven't reviewed your code : just how
it works.
Cheers,
Yves
>
> Alexandre
>
>
>
> Alexandre Dube wrote:
> > Yves Moisan wrote:
> >> I'm not against implementing an on/off switch as long as we at least
> >> have separate controls for WMS and TC. We'll see if a per datastore
> >> approach is needed after.
> >
> > Great. Let's go with this, then.
> >
> >
>
>
More information about the Geoprisma-dev
mailing list