How to change browser cache after refreshing DOM page?

Until now, I know that I can separate static and dynamic content using AJAX, so if there is an update on the blog comments, the article should not be reloaded (this will be 304), only comments. Now I’m thinking about saving dynamic content so that the next time I need to request only new comments. Is there a way to do this without relying on Flash / Gears / HTML5Storage or other plugins?

EDIT: Let's say the article comment section is as follows:

<div class='comments' id='comments'>
 <a name='comments'></a>
 <h4>43 comments:</h4>
 <dl id='comments-block'></dl>
 <p class='comment-footer'>
  <a href='http://example.org/postcomment' onclick=''>Post a Comment</a>
 </p>
</div>

on which an AJAX call to retrieve the comments will add them to <dl id='comments-block'>, which contains the following snippet:

<div class='comments-singleblock'>
  <dt class='comment-author' id='comment-5378479254070788764'>
    <a name='comment-5378479254070788764'></a>
      Anonymous coward
      <span class='comment-timestamp'>
        <a href='#comment-5378479254070788764' title='comment permalink'>
           5 February 2012 16:52
        </a>
      </span>
    </a>
  </dt>
  <dd class='comment-body'>
    <p>
      Your lorum is my ipsum, the dolor is sit amet us.
    </p>
  </dd>
  <dd class='comment-footer'>
    Which eternal lies, that is not death.
  </dd>
</div>

. AJAX , . , ,

  • AJAX : A. .
  • , B, A. , , URL- .
  • B. .
  • , , .

, , , , A B.

+5
1

, JSON ajax.

Max_Last_Modified_Date.

javascript, JSON.

, MAX (LastModifiedDate) .

, JSON

  • ( )
  • Max_Last_Modified_Date.
+1

All Articles