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

javascript and css versioning #19

Closed
Garowetz opened this issue Aug 8, 2010 · 4 comments
Closed

javascript and css versioning #19

Garowetz opened this issue Aug 8, 2010 · 4 comments

Comments

@Garowetz
Copy link
Contributor

Garowetz commented Aug 8, 2010

Since you are using such far-future expires headers for caching in the .htaccess file should you not be using a format to version your css and javascript files.

Such as the "script.js?v=1.0" or similar example in the .htaccess file

@paulirish
Copy link
Member

I don't understand.... Since we're setting farfuture expires, we have to version at the filename level.. unless you expect to never modify these files at all.

@Garowetz
Copy link
Contributor Author

Garowetz commented Aug 8, 2010

Sorry didn't explain that very well

Yes we have to have version at the filename level

I'm suggesting that we add it to the index.html template, so that future designers already have it in. Say we start with "?v=0.1" to the end of the js and css files referenced in the index.html template.

@paulirish
Copy link
Member

Ah, i follow. :)

Okay good call.

@paulirish
Copy link
Member

fixed in 7195c8d

This issue was closed.
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

No branches or pull requests

2 participants