Skip to content

[JENKINS-17684] Dashboard web pages don't render correctly in Chrome because of bad cache/session #14507

Open

Description

@jenkins-infra-bot

After using Chrome for a day, the page renders incorrectly.

Screenshot: http://imgur.com/9Y11bqz

It doesn't matter if I hit refresh multiple times, it always renders the same way. If I open another browser, it works fine.

If I debug under Chrome Dev Tools, I don't see any errors when fetching the resources... just a whole bunch of 304s.

If I clear the cache manually using the Chrome Web settings, then everything works fine again.

I went to #jenkins on freenode and apparently other people were having the same issue.

*Update* I can make the error go away by simply clearing the jenkins cookie and leaving the rest of the cache intact. It seems the error is session related (all the cookie contains is a session id).

I am using the GitHub plugin for authentication/authorization.


Originally reported by rburhum, imported from: Dashboard web pages don't render correctly in Chrome because of bad cache/session
  • assignee: accountapp
  • status: Reopened
  • priority: Major
  • component(s): core
  • label(s): 1.509.2-fixed
  • resolution: Unresolved
  • votes: 24
  • watchers: 45
  • imported: 2025-11-24
Raw content of original issue

After using Chrome for a day, the page renders incorrectly.

Screenshot: http://imgur.com/9Y11bqz

It doesn't matter if I hit refresh multiple times, it always renders the same way. If I open another browser, it works fine.

If I debug under Chrome Dev Tools, I don't see any errors when fetching the resources... just a whole bunch of 304s.

If I clear the cache manually using the Chrome Web settings, then everything works fine again.

I went to #jenkins on freenode and apparently other people were having the same issue.

*Update* I can make the error go away by simply clearing the jenkins cookie and leaving the rest of the cache intact. It seems the error is session related (all the cookie contains is a session id).

I am using the GitHub plugin for authentication/authorization.

environment
Google Chrome	26.0.1410.65 (Official Build 193261) <br/>
OS	Mac OS X <br/>
WebKit	537.31 (@147513)<br/>
JavaScript	V8 3.16.14.11<br/>
Flash	11.7.700.169<br/>
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31<br/>
Command Line	 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome -psn_0_17293437 --flag-switches-begin --enable-expose-for-tabs --enable-experimental-extension-apis --sync-keystore-encryption --flag-switches-end<br/>
Executable Path	/Applications/Google Chrome.app/Contents/MacOS/Google Chrome<br/>
Profile Path	/Users/rburhum/Library/Application Support/Google/Chrome/Default<br/>
Variations	853359fa-33ba05a4<br/>
5f9f065f-15eb91be<br/>
b03ddc1f-2d9ef0cc<br/>
f9b252d0-fd526c81<br/>
ca6785ad-766fa2d<br/>
3709139-766fa2d<br/>
ff3fc1a6-766fa2d<br/>
d86b76a4-d674141c<br/>
7f6da4bf-cda32b90<br/>
75f7fb7e-611a9f49<br/>
24dca50e-837c4893<br/>
ca65a9fe-91ac3782<br/>
82d91892-3d47f4f4<br/>
3028188e-d60b5a5f<br/>
5a3c10b5-e1cc0f14<br/>
244ca1ac-4ad60575<br/>
246fb659-75cb33fc<br/>
f296190c-19dcaa1a<br/>
4442aae2-d7f6b13c<br/>
75f0f0a0-e1cc0f14<br/>
e2b18481-6bdfffe7<br/>
e7e71889-e1cc0f14
6 attachments

Activity

  1. jenkins-infra-bot commented on Apr 19, 2013

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      If anyone else sees a similar issue, please attach your screenshots as well.

      http://imgur.com/9Y11bqz has no table borders, which indicates that style.css isn't kicking in. The chrome dev output indicates that Jenkins had sent 304 without content, which then makes me wonder what Chrome thinks it has in its cache.

      One would think somehow the cache gets poluted, and Chrome isn't even noticing that because the server keeps sending 304 to the client.

    If anyone else sees a similar issue, please attach your screenshots as well.

    http://imgur.com/9Y11bqz has no table borders, which indicates that style.css isn't kicking in. The chrome dev output indicates that Jenkins had sent 304 without content, which then makes me wonder what Chrome thinks it has in its cache.

    One would think somehow the cache gets poluted, and Chrome isn't even noticing that because the server keeps sending 304 to the client.

  2. jenkins-infra-bot commented on Apr 22, 2013

    @jenkins-infra-bot
    Author
    laro:
    • Original comment link
    • Raw content of original comment:

      Same problem here with Google Chrome, Version 26.0.1410.64 m under Windows 7, 64-bit.

      Can't enforce the bug, but it happens quite regularly after automatic refresh ran in the background for a while. Agree that it looks like a problem with CSS. Maybe a bug of Chrome, not necessarily Jenkins.

    Same problem here with Google Chrome, Version 26.0.1410.64 m under Windows 7, 64-bit.

    Can't enforce the bug, but it happens quite regularly after automatic refresh ran in the background for a while. Agree that it looks like a problem with CSS. Maybe a bug of Chrome, not necessarily Jenkins.

  3. jenkins-infra-bot commented on Apr 22, 2013

    @jenkins-infra-bot
    Author
    rburhum:
    • Original comment link
    • Raw content of original comment:

      I can get it to happen without having automatic refresh for awhile. After the site goes into a bad state, it remain so.

      I was also told (in IRC) to look at the contents of screen.css. I don't see any screen.css file though.

      *I found something interesting though*. If I delete the jenkins cookie and open the page again, the page starts working again. The cookie contains the session value, so it seems that the error is related to a session id expiring. I am using the GitHub plugin for authentication/authorization.

    I can get it to happen without having automatic refresh for awhile. After the site goes into a bad state, it remain so.

    I was also told (in IRC) to look at the contents of screen.css. I don't see any screen.css file though.

    *I found something interesting though*. If I delete the jenkins cookie and open the page again, the page starts working again. The cookie contains the session value, so it seems that the error is related to a session id expiring. I am using the GitHub plugin for authentication/authorization.

  4. jenkins-infra-bot commented on Apr 22, 2013

    @jenkins-infra-bot
    Author
    rburhum:
    • Original comment link
    • Raw content of original comment:

      I am going to update the main bug description to account for this.

    I am going to update the main bug description to account for this.

  5. jenkins-infra-bot commented on Apr 22, 2013

    @jenkins-infra-bot
    Author
    kutzi:
    • Original comment link
    • Raw content of original comment:

      Seeing something similar quite frequently (Jenkins ver. 1.480.2, Chrome Version 26.0.1410.64) I can resolve it by forcing a full reload (CTRL+SHIFT+R)

    Seeing something similar quite frequently (Jenkins ver. 1.480.2, Chrome Version 26.0.1410.64)
    I can resolve it by forcing a full reload (CTRL+SHIFT+R)

  6. jenkins-infra-bot commented on Apr 23, 2013

    @jenkins-infra-bot
    Author
    mika:
    • Original comment link
    • Raw content of original comment:

      Seeing the same problem here on Jenkins v1.512 + Chrome 26.0.1410.43-r189671, ctrl-shift-r works around the issue. Might be related to JENKINS-17526?

    Seeing the same problem here on Jenkins v1.512 + Chrome 26.0.1410.43-r189671, ctrl-shift-r works around the issue.
    Might be related to JENKINS-17526?

  7. jenkins-infra-bot commented on Apr 23, 2013

    @jenkins-infra-bot
    Author
    rburhum:
    • Original comment link
    • Raw content of original comment:

      To clarify:

      • hitting 'refresh' does not fix it.
      • Command-R ('regular' refresh), does not fix it.
      • Command-Shift-R (refresh & ignore cache) temporarily makes the problem go away. It comes back after some time (less than a day).

      It does look like it is similar to JENKINS-17526

    To clarify:

    • hitting 'refresh' does not fix it.
    • Command-R ('regular' refresh), does not fix it.
    • Command-Shift-R (refresh & ignore cache) temporarily makes the problem go away. It comes back after some time (less than a day).

    It does look like it is similar to JENKINS-17526

  8. jenkins-infra-bot commented on Apr 24, 2013

    @jenkins-infra-bot
    Author
    winotu:

    Same issue for me, jenkins 1.512 Chrome 26.0.1410.64 m, Win 7 64bit. Usually I use ctrl + F5 which clears cache for web page and helps. Offtop: Chrome have now new feature for cleaning cache you can check http://stackoverflow.com/questions/12633425/chrome-browser-reload-options-new-feature

  9. jenkins-infra-bot commented on May 14, 2013

    @jenkins-infra-bot
    Author
    papercrane:
    • Original comment link
    • Raw content of original comment:

      I'm having the same problem with jira v5.2.8#851-sha1:3262fdc with Chrome 26.0.1410.65 on Max OSX 10.7.5. If I hold Option while clicking refresh, it gets fixed for a short time.

    I'm having the same problem with jira v5.2.8#851-sha1:3262fdc with Chrome 26.0.1410.65 on Max OSX 10.7.5. If I hold Option while clicking refresh, it gets fixed for a short time.

  10. jenkins-infra-bot commented on May 15, 2013

    @jenkins-infra-bot
    Author
    outspoken:
    • Original comment link
    • Raw content of original comment:

      15:51:06 <+rpetti> IMO, just assign it to kohsuke

    15:51:06 <+rpetti> IMO, just assign it to kohsuke

  11. jenkins-infra-bot commented on May 17, 2013

    @jenkins-infra-bot
    Author
    mbarczak:
    • Original comment link
    • Raw content of original comment:

      Same problem here : Chrome 26 , Jenkins 1.489 . Ctrl+Shift+R fixes problem for a while

    Same problem here : Chrome 26 , Jenkins 1.489 . Ctrl+Shift+R fixes problem for a while

  12. jenkins-infra-bot commented on May 20, 2013

    @jenkins-infra-bot
    Author
    vladichko:
    • Original comment link
    • Raw content of original comment:

      this is how it looks for me at chrome Version 26.0.1410.64 m(attached jenkins-gui.png)

    this is how it looks for me at chrome Version 26.0.1410.64 m(attached jenkins-gui.png)

  13. jenkins-infra-bot commented on May 21, 2013

    @jenkins-infra-bot
    Author
    kevinhcross:
    • Original comment link
    • Raw content of original comment:

      Seeing the same issue with Jenkins 1.509.1 running as a native package on CentOS release 6.4. Ctrl-shift-R seems to fix the issue. Attaching jenkins_css_3.PNG. Chrome Version 26.0.1410.64 m.

    Seeing the same issue with Jenkins 1.509.1 running as a native package on CentOS release 6.4. Ctrl-shift-R seems to fix the issue. Attaching jenkins_css_3.PNG. Chrome Version 26.0.1410.64 m.

  14. jenkins-infra-bot commented on May 21, 2013

    @jenkins-infra-bot
    Author
    ikikko:
    • Original comment link
    • Raw content of original comment:

      I think that a problem may be sending content-type header when http response is 304 in winstone. Looking a capture http://imgur.com/9Y11bqz, css files are interpreted as 'text/html', but should be 'text/css'.

      According to RFC, the 304 response should not include non-releated header.

      If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.

      For example, Plack ( which is web app framework by Perl ) excludes Content-Type / Content-Length / Content-Disposition headers.

      So, I fix a source code to exclude content-type when 304, and trying it in my using Jenkins server.

      If no problem for a week, I'll send a pull request this. Currently, content-type header is normal and no problem occurs for three days.

      It's ok that you fix in main repository source code before sending my pull request. At which time, consider about other headers (Content-length, content-disposition, and so on), please.

    I think that a problem may be sending content-type header when http response is 304 in winstone.
    Looking a capture http://imgur.com/9Y11bqz, css files are interpreted as 'text/html', but should be 'text/css'.

    According to RFC, the 304 response should not include non-releated header.

    If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.

    For example, Plack ( which is web app framework by Perl ) excludes Content-Type / Content-Length / Content-Disposition headers.

    So, I fix a source code to exclude content-type when 304, and trying it in my using Jenkins server.

    If no problem for a week, I'll send a pull request this.
    Currently, content-type header is normal and no problem occurs for three days.

    It's ok that you fix in main repository source code before sending my pull request.
    At which time, consider about other headers (Content-length, content-disposition, and so on), please.

  15. jenkins-infra-bot commented on May 21, 2013

    @jenkins-infra-bot
    Author
    orrc:

    Nice! That sounds like a plausible explanation, and other people are having similar problems with Chrome:

    http://productforums.google.com/forum/#!msg/chrome/zID6uQQfKH8/AOUiKiAp8fwJ
    https://code.google.com/p/chromium/issues/detail?id=176430

    I guess everybody here seeing this issue is running Winstone?

  16. 12 remaining items

  17. jenkins-infra-bot commented on Jun 10, 2013

    @jenkins-infra-bot
    Author
    owenmehegan:
    • Original comment link
    • Raw content of original comment:

      Watch the changelog.

    Watch the changelog.

  18. jenkins-infra-bot commented on Jun 10, 2013

    @jenkins-infra-bot
    Author
    kerrhome:
    • Original comment link
    • Raw content of original comment:

      Thanks very much to both of you and sorry for my newbie-ness This issue and JENKINS-10442 are the first two real issues I've experienced on Jenkins. Looking forward to the fixes being rolled out.

    Thanks very much to both of you and sorry for my newbie-ness This issue and JENKINS-10442 are the first two real issues I've experienced on Jenkins. Looking forward to the fixes being rolled out.

  19. jenkins-infra-bot commented on Jun 11, 2013

    @jenkins-infra-bot
    Author
    orrc:
    • Original comment link
    • Raw content of original comment:

      Version 1.518 was released today, which fixes this issue.

    Version 1.518 was released today, which fixes this issue.

  20. jenkins-infra-bot commented on Jun 11, 2013

    @jenkins-infra-bot
    Author
    kerrhome:
    • Original comment link
    • Raw content of original comment:

      Verified. It's beautiful! Great work! Thanks.

    Verified. It's beautiful! Great work! Thanks.

  21. jenkins-infra-bot commented on Jun 20, 2013

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Jesse Glick
    Path:
    war/pom.xml
    http://jenkins-ci.org/commit/jenkins/804c2ed42e15dcf8576f1697d174550e1370b779
    Log:
    [FIXED JENKINS-17684] Integrate new Winstone with caching fix.

    Cherry-picked-from: 0866cf5

  22. jenkins-infra-bot commented on Jun 23, 2013

    @jenkins-infra-bot
    Author
    lacostej:
    • Original comment link
    • Raw content of original comment:

      Would like to have this backported to lts-candidate. Seems I cannot add a label on closed issues.

    Would like to have this backported to lts-candidate. Seems I cannot add a label on closed issues.

  23. jenkins-infra-bot commented on Jul 19, 2016

    @jenkins-infra-bot
    Author
    srinivav:
    • Original comment link
    • Raw content of original comment:

      I just upgraded to 2.7.1 I am seeing this problem again. I am not able to reach the post build sections of the dashboard at all.

      Please see

    I just upgraded to 2.7.1 I am seeing this problem again. I am not able to reach the post build sections of the dashboard at all.

    Please see

  24. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-17526]

  25. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions