[OSM-dev] how to change the delimiter in rails asset urls?

Mikel Maron mikel_maron at yahoo.com
Wed Aug 6 01:13:10 BST 2008

I've just removed that bit from my local server, and now it works.
How are these urls being resolved then?

----- Original Message ----
From: Tom Hughes <tom at compton.nu>
To: dev at openstreetmap.org
Cc: Mikel Maron <mikel_maron at yahoo.com>
Sent: Tuesday, August 5, 2008 4:47:26 PM
Subject: Re: [OSM-dev] how to change the delimiter in rails asset urls?

In message <714787.19415.qm at web30805.mail.mud.yahoo.com>
          Mikel Maron <mikel_maron at yahoo.com> wrote:

> Does anyone have an idea why the rails app appends "/" + timestamp, rather
> than "?" + timestamp, on asset urls?

As Jon said, it's a hack in our code. The reason is that using ?, which
is  the rails default, tends to make the page non-cacheable and the whole
point of the asset tag is to make it cacheable until the resource changes
and then force a refresh.


Tom Hughes (tom at compton.nu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080805/8b3a1050/attachment.html>

More information about the dev mailing list