S
S
Sergey2017-08-10 11:22:52
PHP
Sergey, 2017-08-10 11:22:52

How to tell the browser not to cache part of the page (Last-Modified)?

For example, I have a login form in the header of my page. If the user logs in, the page is reloaded and the user can see their name. But if the page is already in the cache (Last-Modified, IfModifiedSince) and we enter our personal account, then after reloading the page, the user will not see the name. Perhaps there are some ways to tell the browser not to cache certain blocks on the page (like attributes for div meta="not-cache" tags) or are there other ways around my problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2017-08-10
@gromdron

To be honest, with successful authorization, you do not have the right to give the same Last-Modified, since the page has changed. In general, if you do not have a news blog, then I probably would not recommend you to bother much with this headline - there will be more problems than profit. Better optimize.

L
lnroma, 2017-08-10
@lnroma

only casters with ajax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question