Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question