sirko-io / engine

Benefit from new browsers' technologies to speed up your site
GNU General Public License v3.0
43 stars 3 forks source link

A login page is predicted for an authorized user #15

Closed dnesteryuk closed 6 years ago

dnesteryuk commented 7 years ago

Context: There is a site which prevents authorized users from accessing the login page. If the authorized user tries to access the login page, that user gets redirected to the index page behind the login.

Problem: When the login page gets predicted for the authorized user, the browser pre-renders the index page. After logout, it results in showing the index page instead of the login.

This scenario depends on an actual implementation of a site. But, it is a real case and the engine should provide a way to configure such things in order to avoid prerendering of wrong pages.

dnesteryuk commented 6 years ago

This case is handled by the client. See the attached commit for more details.