What I do is to open the gwc demo page for the layer, copy the url for one of the tiles (something lie right clikck -> copy image URL, depending on your browser), and then use curl to check if the geowebcache-tile-index http response header is returned, like in the example bellow, it returns geowebcache-tile-index: [3, 10, 4]
curl -v "http://demo.opengeo.org/geoserver/gwc/service/wms?LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-12523442.7125,5009377.085,-10018754.17,7514065.6275&WIDTH=256&HEIGHT=256">/dev/null * About to connect() to demo.opengeo.org port 80 (#0) * Trying 173.236.65.97... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected * Connected to demo.opengeo.org (173.236.65.97) port 80 (#0) > GET > /geoserver/gwc/service/wms?LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-12523442.7125,5009377.085,-10018754.17,7514065.6275&WIDTH=256&HEIGHT=256 > HTTP/1.1 > User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e > zlib/1.2.3.4 libidn/1.22 librtmp/2.3 > Host: demo.opengeo.org > Accept: */* > < HTTP/1.1 200 OK < Date: Mon, 14 Nov 2011 11:01:51 GMT < Server: Apache-Coyote/1.1 < Cache-Control: max-age=7200, must-revalidate < Expires: Mon, 14 Nov 2011 13:01:51 GMT < geowebcache-tile-index: [3, 10, 4] < Content-Type: image/png < Content-Length: 10729 < Via: 1.1 demo.opengeo.org < { [data not shown] 100 10729 100 10729 0 0 7147 0 0:00:01 0:00:01 --:--:-- 13036 * Connection #0 to host demo.opengeo.org left intact * Closing connection #0 On Wed, Nov 9, 2011 at 7:47 AM, jyby <joanmallo...@gmail.com> wrote: > Hi, I was wondering how to test if geowebcache works with my application. > When I load the layers some are very fast (point layers) and some are so > slow (line layers), so I wanna know if they are loading from the cache > (geowebcache) or not, any idea? > > Thanks in advance. > > Joan > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Testing-GeoWebCache-tp6977549p6977549.html > Sent from the GeoServer - User mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users