Skip to content

Set the modification time of the packaged assets to equal the constituents.#1

Open
bouchard wants to merge 4 commits intosentientmonkey:masterfrom
bouchard:d1b5959479cbc59e92a9b297cae5ccd1176fc2a8
Open

Set the modification time of the packaged assets to equal the constituents.#1
bouchard wants to merge 4 commits intosentientmonkey:masterfrom
bouchard:d1b5959479cbc59e92a9b297cae5ccd1176fc2a8

Conversation

@bouchard
Copy link

@bouchard bouchard commented Sep 6, 2010

Rails uses the modification time of the CSS/JS packaged file in the URL as a cache-busting mechanism. To prevent users from having to re-download a packaged asset after a deploy or re-gen of the packaged files, the packaged assets should take their mod time from the latest modded file that is part of the package.

I know this commit has messy newline's attached to it, let me know if you want me to redo it before you commit. I appreciate any comments you might have!

James Prior and others added 4 commits April 30, 2010 14:36
…ing asset_packager to use module and stop shuffling files / invoking ruby
…ently updated source file.

This allows Rails asset IDs to work as intended - if the source files haven't been modified when a new build is done (typically at deploy time), the asset IDs will stay the same so browsers don't need to re-download.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants