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 a hash to cached assets (.js and .css files) #904
Conversation
Requested at #734 (comment) |
@@ -1,11 +1,12 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spurious whitespace change
@lukeyeager, I think I hit all your points and simplified the dir_hash function a bit. |
Code looks good. I verified the fix. I'll merge once TravisCI passes (not because I think it won't pass, but because I like to see check marks by merged PRs 😃). |
Add version hash (from #904) to PretrainedModel.js
Add a hash to cached assets (.js and .css files)
Add version hash (from NVIDIA#904) to PretrainedModel.js
When moving between versions of DIGITS changes in javascript content can cause render issues.
git checkout 74afccb
reload the DIGITS home page, click on a job name to navigate to a job page,
git checkout d0b407a
Use the DIGITS link in the upper left corner to navigate back to the home page.
The content of the app javascript file has changed, however the file is cached in session by the name, and the name has not changed. To flush the cache a hash for the static directory is being added to the url for the .js and .css files.