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

Clear-Site-Data and bfcache #73

Open
domenic opened this issue Mar 31, 2022 · 3 comments
Open

Clear-Site-Data and bfcache #73

domenic opened this issue Mar 31, 2022 · 3 comments

Comments

@domenic
Copy link

domenic commented Mar 31, 2022

Should clear-site-data ever clear bfcache? /cc @fergald

Based on name/intent, I think executionContexts and cache might be good reasons to clear bfcache. (And arguably bfcache falls into the unspecified step 4 of cache.) But, I guess cache might be going away, er #68? And, per #59, nobody implements executionContexts?

We've run into some scenarios where people want to clear bfcache on logout. (I think @fergald can elaborate.) We thought using clear-site-data would be a good tool for this, but now I'm kind of confused.

@annevk
Copy link
Member

annevk commented Apr 4, 2022

A new keyword could maybe work. Not entirely sure how it should work in terms of scope. (E.g., A embeds B1 and gets bfcached, then navigates to B2 which clears. Is A cleared?)

See also whatwg/html#5744.

cc @cdumez

@fergald
Copy link

fergald commented Apr 4, 2022

When I talked to @domenic about this, I did not know that executionContexts was unimplemented by everyone. It seems like BFCached content should not survive if other tabs are getting reloaded.

We can also say that sites can all just handle this in the pageshow handlers if they really care although having main frames things reload as their come out of BFCache seems like a step backwards.

@fergald
Copy link

fergald commented Aug 1, 2023

Since Safari and Chrome have already shipped BFCache clearing with cache and FF have removed cache, what should we do? Update the spec for cache?

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

No branches or pull requests

3 participants