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

Notifications not marked as read upon returning with the browser back button #3042

Open
svarlamov opened this issue Dec 1, 2017 · 4 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality

Comments

@svarlamov
Copy link
Contributor

  • Gitea version (or commit ref): 033ad9a

Description

When I click on a notification from /notifications from the "Unread" tab to go to an issue. When I use the browser back button to go to the notifications list "Unread" tab, the notification is still showing there as unread. When I subsequently refresh the /notifications page, it has been moved to the "Read" tab. This seems to be caused by improper browser caching of the /notifications page when you use the browser back button. I'm using Google Chrome Version 62.0.3202.94 (Official Build) (64-bit).

@lunny lunny added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Dec 1, 2017
@andreynering
Copy link
Contributor

A HTTP header to disable cache would do the trick.

https://stackoverflow.com/a/2068407

@svarlamov
Copy link
Contributor Author

svarlamov commented Dec 7, 2017

@andreynering I'm not too familiar with the best practices here, but I think that this makes sense for pages that load high-churn data, ie., issue pages, PRs, etc.

@raucao
Copy link

raucao commented Jan 27, 2019

By the way, the icon should disappear from the same issue as soon as there aren't any notifications left. The issue is not with the back button, but that the notifications should be marked as read and no red icon should appear before rendering the issue page for the last issue that was notified about.

Ideally, there would be sth like server-sent events (SSE) to also update the icon on previously opened issue pages, for when you open a bunch of issues in tabs. But that's more of a new feature than fixing this bug I guess.

@stale
Copy link

stale bot commented Mar 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 28, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Mar 28, 2019
@stale stale bot removed the issue/stale label Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants