Browser & Web Performance · Middle · Question 65 of 75

How can a page detect that it was restored from bfcache?

Explanation

Use it to refresh stale data (e.g. cart contents). Use pagehide instead of unload for cleanup.

Further reading

Problem with a question

Browser & Web Performance · Middle · question 65

Test yourself

Take the Browser & Web Performance · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz