Skip to content

Time Sync Warning Banner Appears on Reopened Pages #12338

@Eli-J-Schwartz

Description

@Eli-J-Schwartz

Describe the bug
A warning banner indicating that the server time is out-of-sync with the client time sometimes appear on reloaded pages, even though the time is correct. This is caused by aggressive caching, which saves an older send time.

Expected behavior
The time the page was sent shouldn't be cached, so that the warning banner will not appear when a page is reloaded.

To Reproduce
Steps to reproduce the behavior:

  1. Open any page on the Submitty website.
  2. Close the page and wait >2 minutes.
  3. Reopen the page from the browser history (CTRL-Shift-T).
  4. See the banner appear, even though the time is aligned.

Configuration

  • OS: Arch Linux
  • Browser: Firefox

Screenshots
The following example of the warning banner appeared, even though the time was set properly. The banner went away after a manual reload.

Image

Additional context
The original version of this issue incorrectly identified the problem as stale pages being loaded, and was modified to fix the issue.

Metadata

Metadata

Labels

Awaiting TriageBrand New Issue - not yet reviewed & prioritized by the Submitty Project Managersbug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions