Private pages: | ||
---|---|---|
index.html | first ajax-request (pageLoad) | |
Shall look the same (be cacheable (not include boARLoggedIn etc)) | no | yes |
Public pages: | ||
index.html | first ajax-request (getLoginBoolean) | |
Shall look the same (be cacheable (not include boARLoggedIn etc)) | yes | no |
For private pages, the potential ajax request is private-cacheable (only stored in your computer/browser).
All cached requests of pages are validated (The request looks like normal, only containing the header-field if-modified-since and the server may answer with a short 304 (Not Modified))
However with javascript you can change this behavior, and this is what's done if you have made any changes to the page.
This way hitting the backbutton will give very rapid (cached) response on pages that you have not changed, but still get up to date (but a bit slower) responses to pages that you have changed.
This behavior will however give you a stale page if other people have changed the page.
Also ETag-header fields and 304 (Not Modified) are used.