-
Notifications
You must be signed in to change notification settings - Fork 781
Using weak tag instead of just last modification date #2435
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
Conversation
- This enables us to reflect all other factors which contribute to the resource freshness the last file timestamp messages on the project the timestamp of last index the opengrok version - We assemble all these to the weak tag, and the resource is reloaded only in any of these change
Pull Request Test Coverage Report for Build 3305
💛 - Coveralls |
opengrok-indexer/src/main/java/org/opengrok/indexer/web/PageConfig.java
Outdated
Show resolved
Hide resolved
opengrok-indexer/src/main/java/org/opengrok/indexer/web/PageConfig.java
Outdated
Show resolved
Hide resolved
@@ -56,11 +56,8 @@ | |||
<filter-mapping> | |||
<filter-name>ExpiresHalfHourFilter</filter-name> | |||
<url-pattern>/history/*</url-pattern> |
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.
why not history ?
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.
history does not include mast.jsp so this does not affect it anyway
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.
Does this mean that history page will not display any messages ?
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.
No. It means it will work like now, with sometimes inconsistent view as mentioned in #2405 because of the 30 minutes caching interval. This is also a subject to change if desired, but in different PR.
This enables us to reflect all other factors
which contribute to the resource freshness
We assemble all these to the weak tag,
and the resource is reloaded only in any of these change
OpenGrok version is added to the weak tag attributes because of utils.js. Until now event when we increase the version of utils.js, the cached xref still pointed to the old version causing some drama with javascript. This way with every new OpenGrok version, each xref will be reloaded (no need for ctrl+shift+R).
fixes #2405