How to manage caching? On the one hand, I need that information not be cached, otherwise users will not see new messages, for this I do:
1) in the response headers from the server I issue:
Quote
Cache-Control: no-transform Pragma: no-cache Expires: Thu, 19 Nov 1981 08:52:00 GMT
2) in the HTML code I specify:
Quote
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1">
But it turns out that not everything should not be cached, something that is desirable not to re-download. From the largest it is Java scripts and styles.