Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds CacheBustingWorker #297

Merged
merged 6 commits into from Sep 14, 2012
Merged

adds CacheBustingWorker #297

merged 6 commits into from Sep 14, 2012

Conversation

fran6co
Copy link
Contributor

@fran6co fran6co commented Sep 4, 2012

Alternative implementation for #190 and #143. Using @kriswallsmith code as a base.

@travisbot
Copy link

This pull request fails (merged 1536526 into 86b637e).

case 'modification':
hash_update($hash, $asset->getLastModified());
break;
case 'content':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should add class constants for the strategies

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@travisbot
Copy link

This pull request passes (merged d854bdf into 86b637e).

@travisbot
Copy link

This pull request passes (merged b0b6f23 into 86b637e).

@fran6co
Copy link
Contributor Author

fran6co commented Sep 4, 2012

If this gets accepted I'll add support for it in the AsseticBundle, maybe enable it by default.


You can use the CacheBustingWorker to provide unique names.

To strategies are provided: 'content' (content based), 'modification' (modification time based)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc is wrong here as they are now 1 and 2 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@travisbot
Copy link

This pull request passes (merged 503bc9f into 86b637e).

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.

None yet

3 participants