[Potlatch-dev] Various questions

Richard Fairhurst richard at systemeD.net
Wed Aug 25 23:02:35 BST 2010


Nop <ekkehart at gmx.de> wrote:
> Hi!
> 
> While trying to set up P2 with my own style and using it, I stumbled over a few things.
> 
> - I tried to change the icons, but I noted that once an icon has been shown by a preset, it won't change. I exchanged the icon file, I reloaded without cache, I restarted P2 and I quit Firefox. But the old icon is still showing. Obviously there is a cache somewhere. How can I reset it?

Flash caching is exceptionally aggressive, and annoying. For development purposes you can try appending ?12345 (or whatever) to the URL to trick Flash into thinking it's a different URL. If I get a minute next week or so, I'll add a (FlashVars-configurable) option to Potlatch to tell it to use POST requests instead, which is a better way of defeating Flash's caching.
 
> - I have been unable to load a GPX from an URL. Obviously loading GPX tracks is needed if I want to work with P2 as my main editor. But whenever I try that, I get the error "You don't have permission to open a file...". If I copy the URL into the browser, it opens the file just fine and shows the contents. Is this a known bug? Am I doing something wrong?

You're not - afraid that's another Flash annoyance. :( Flash Player won't load external data from another domain unless that domain has a crossdomain.xml file giving explicit permission. If you want to load from OSM, try www.openstreetmap.org/api/0.6/gpx/<id>/data.xml - Tom fixed that yesterday so it'll work with P2.

cheers
Richard


More information about the Potlatch-dev mailing list