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

Bug/1258 if you log out you can click the back button and see the previous logged in page #1261

Conversation

myieye
Copy link
Contributor

@myieye myieye commented Nov 21, 2024

Fixes #1258

Sets the Clear-Site-Data: "cache" header on logout, which tells the browser to clear the browser cache.
Juicy change is here: f56f09e
Other commits are for:

  • My test/test refactoring
  • Other small fixups I bumped into

We can clear more stuff, but I'm not sure if we want to:

  • cookies. This would clear the selected "My projects" layout, which I don't think we want.
  • storage. I've got some weird tus stuff in my localStorage as well as the FieldWorks Lite selected view:
    image

Copy link

github-actions bot commented Nov 21, 2024

UI unit Tests

12 tests  ±0   12 ✅ ±0   0s ⏱️ ±0s
 4 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8145310. ± Comparison against base commit cdc5349.

♻️ This comment has been updated with latest results.

@myieye myieye force-pushed the bug/1258-if-you-log-out-you-can-click-the-back-button-and-see-the-previous-logged-in-page branch from 43747e5 to 8145310 Compare November 21, 2024 13:02
@myieye
Copy link
Contributor Author

myieye commented Nov 21, 2024

It's a bit unfortunate that the Playwright tests don't get executed on frontend-only PRs 🤔

Copy link
Collaborator

@hahn-kev hahn-kev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I ran into an issue once where I could go back and it didn't keep me at the home page, but I wasn't able to replicate it.

Yeah I agree I want to fix that, but that's what #1224 is for

frontend/src/hooks.server.ts Show resolved Hide resolved
@myieye myieye merged commit 0da7cf8 into develop Nov 22, 2024
9 checks passed
@myieye myieye deleted the bug/1258-if-you-log-out-you-can-click-the-back-button-and-see-the-previous-logged-in-page branch November 22, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

if you log out you can click the back button and see the previous logged in page
2 participants