Autorefresh reloads images causing performance issue

Issue

  • Autorefresh causes performance issue.
  • JENKINS-19828.
  • Static images get loaded when page autorefresh enabled.

Environment

  • Jenkins
  • CloudBees Jenkins Enterprise

Resolution

There is currently no way to disable the autorefresh functionality in Jenkins, however there are other ways to fix caching issues:

  • Install Config AutoRefresh Plugin, and configure the auto refresh time to a large number.
  • If you are using a container like tomcat you can re-write the header to set the autorefresh cookie to false:
Header edit Set-Cookie "hudson\_auto\_refresh=true" "hudson\_auto\_refresh=false"
RewriteCond %\{QUERY\_STRING\} ^(.+?&|)auto\_refresh=true(?:&(.\*)|)$ \[NC\]
RewriteRule ^ JENKINS\_URL%\{REQUEST\_URI\}?%1%2 \[R=301,L\]
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.