Re: [mapserver-users] Mapcache seeder question
I believe the in your grid should be space delimited - no commas. At least that's how I have things setup, for example... Standard Minnesota UTM Grid 105000 4785000 809000 5489000 epsg:26915 256 256 5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 21.484375 10.7421875 5.37109375 2.685546875 1.3427734375 --Steve -Original Message- From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Matej Mailing Sent: Thursday, July 04, 2019 10:35 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapcache seeder question This message may be from an external email source. Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center. Hello, I am having issues with running Mapcache Seeder with extent options. My grid is defined like: 256 256 373233,31868 625985,194134 EPSG:3912 m 18 9 45000 22500 11250 5000 2500 1250 600 300 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06 and when I try to run seeder with: mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e 533124,86639,544462,103589 I get an output 0 tiles needed to be seeded, exiting, which is certainly not true since plenty of those do not exist in the cache directory. What am I missing? Thanks, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7Ca8f92e6de3474b3eb52608d7009534a0%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636978513162884312sdata=FdCj%2F%2F704BA8lCcJ7cO0t7erzHPXs56%2BpgCXLIugok8%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Adding cache control headers to wms requests
I guess the question is whether this belongs in MapServer or if it should be done at the web server level - you shouldn't need to write a wrapper process. The mod_headers module provides this for Apache and since you can use the module in any container (e.g. ) you could set headers based on things like the value of the map parameter or the WMS request type. I would guess other web servers provide similar functionality but I don't know that for sure. That seems extremely flexible IMHO. Currently the setting max-age is supported in 3 spots within MapServer: WMS/GetMap (1), mode=map (2) and mode=legendicon (3) CGI requests. Other request responses don't look for or set it and probably should in a more general solution. --Steve -Original Message- From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, July 04, 2019 10:16 AM To: mapserver-users Subject: [mapserver-users] Adding cache control headers to wms requests Hi all, I need to add the following headers to some wms responses: |Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 I am aware that I can set: MAP WEB METADATA ... "ows_http_max_age" "0" END END ... END But it seems like it would be a good idea to be able to set additional headers also. Maybe something like: WEB HEADERS "||Cache-Control: no-cache, no-store, must-revalidate|" "|Pragma: no-cache|" "Expires: 0" END METADATA ... END END This would provide an easy way to add arbitrary response header. The various headers are because browsers are not consistent which headers they respond to. See|| https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers || Maybe we can already do this and I'm not aware of how. I could write a wrapper around mapserver and funnel some requests through it to do this, but it would be nice if mapserver via the mapfile can do it. Thoughts? -Steve W --- This email has been checked for viruses by Avast antivirus software. https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fantivirusdata=02%7C01%7Csteve.lime%40state.mn.us%7C1af86007bc1f4912624008d7009286dc%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636978501633400154sdata=AdIpAUJ50fRgV5qyalgsGa%2BVvJzoTezeeL%2BdvCXWGJ4%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C1af86007bc1f4912624008d7009286dc%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636978501633410140sdata=vQFd1f%2BWlo%2Bc5Hf651WMklqv9%2B5fmPWuLYX%2B0RHZkM8%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users