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 a hash to cached assets (.js and .css files) #904

Merged
merged 1 commit into from Jul 14, 2016

Conversation

jmancewicz
Copy link
Contributor

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.

@lukeyeager
Copy link
Member

Requested at #734 (comment)

@@ -1,11 +1,12 @@

Copy link
Member

Choose a reason for hiding this comment

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

spurious whitespace change

jmancewicz added a commit to jmancewicz/DIGITS that referenced this pull request Jul 13, 2016
jmancewicz added a commit to jmancewicz/DIGITS that referenced this pull request Jul 13, 2016
jmancewicz added a commit to jmancewicz/DIGITS that referenced this pull request Jul 13, 2016
@jmancewicz
Copy link
Contributor Author

jmancewicz commented Jul 13, 2016

@lukeyeager, I think I hit all your points and simplified the dir_hash function a bit.

@lukeyeager
Copy link
Member

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 😃).

@lukeyeager lukeyeager merged commit 4337347 into NVIDIA:master Jul 14, 2016
lukeyeager added a commit to lukeyeager/DIGITS that referenced this pull request Aug 25, 2016
lukeyeager added a commit that referenced this pull request Aug 26, 2016
Add version hash (from #904) to PretrainedModel.js
SlipknotTN pushed a commit to cynnyx/DIGITS that referenced this pull request Mar 30, 2017
Add a hash to cached assets (.js and .css files)
SlipknotTN pushed a commit to cynnyx/DIGITS that referenced this pull request Mar 30, 2017
SlipknotTN pushed a commit to cynnyx/DIGITS that referenced this pull request Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants