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

Add Script Versioning for Cache Busting #491

Merged
merged 2 commits into from
Apr 24, 2017

Conversation

kopepasah
Copy link
Member

This commit adds script versioning using filemtime.

Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Hey, this looks great and I'm fine to merge as-is.

One question: Do we want this to apply specific to the SCRIPT_DEBUG context? Or would you rather keep this as-is since we don't have a solution for the non-debug case (and I assume this would be addressed separately given discussion at #440).

@kopepasah
Copy link
Member Author

Yes, we should address that once the build process provides separate files for development and production.

@aduth
Copy link
Member

aduth commented Apr 24, 2017

Sounds good, thanks.

@aduth aduth merged commit 7b38889 into WordPress:master Apr 24, 2017
@kopepasah kopepasah deleted the add/440-script-versioning branch April 25, 2017 07:48
@aduth
Copy link
Member

aduth commented Apr 25, 2017

I noticed today that we're missing versions for files enqueued during gutenberg_scripts_and_styles:

@kopepasah
Copy link
Member Author

@aduth good catch. I created another PR to address this issue: #509

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