You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
A user is on the login page: http://localhost/login.
The user logins and gets forwarded to the internal page: http://localhost/index.
First of all the index page is private, it cannot be pre-rendered. Even if the index page is public, the page may be personalized after the login, hence, it must not be pre-rendered. Otherwise, the user will see the stale content.
How to handle such case?
The text was updated successfully, but these errors were encountered:
Also fixes: sirko-io/engine#10, sirko-io/engine#15
When a user navigates between pages, there might be POST/PUT/DELETE
requests. Those requests modify state, so a prefetched page might be
stale.
Example
GET /signin
POST /signin
GET /index
If the transition between the signin and index pages got tracked,
the index page would be prefetched when the user opens the signin page.
This behavior's been leaded to a number of issues.
To avoid the described issue, the service worker
stores all made requests on a page then the client part
asks the service worker to check whether there was a POST/PUT/DELETE
request between the referrer and the current page. If so,
the transition isn't tracked (the referrer parameter gets removed, thus,
the engine doesn't track the transition), but the engine makes a prediction
for the current page anyway. The transition is about the previous
and the current page, the prediction is about the next page.
Scenario:
http://localhost/login
.http://localhost/index
.First of all the index page is private, it cannot be pre-rendered. Even if the index page is public, the page may be personalized after the login, hence, it must not be pre-rendered. Otherwise, the user will see the stale content.
How to handle such case?
The text was updated successfully, but these errors were encountered: