This project is archived and is in readonly mode.

#5463 ✓invalid
Matt Simpson

AssetTagHelper.cache_asset_timestamps Issue

Reported by Matt Simpson | August 26th, 2010 @ 06:33 AM

When setting the cache_asset_timestamps attribute to false I get inconsistent results:

(rdb:1) ActionView::Helpers::AssetTagHelper.cache_asset_timestamps
(rdb:1) image_tag "elements/menu-icons/menu-icon-1.png"
"<img alt=\"Menu-icon-1\" src=\"/images/elements/menu-icons/menu-icon-1.png?1282629255\" />"
(rdb:1) image_tag "elements/menu-icon-1.png"
"<img alt=\"Menu-icon-1\" src=\"/images/elements/menu-icon-1.png\" />"

As you can see, the cache_asset_id still shows up on the first one, but not for the other. From what I've found, if the file exists, it adds the cache id, if it doesn't exist, then it does not add the cache id.

Am I misunderstanding the cache_asset_timestamps attribute or is this a bug?

If I am misunderstanding this, how can I make the cached id on the end of the src attribute not be included?

I am running:

ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
rails off of git branch 3-0-stable


Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>