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

Tom Hughes tom at compton.nu
Wed Aug 6 00:47:26 BST 2008


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

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list