title: window.history.pushState the pages do not update
body: <p>I am using window.history.pushState() to change the url of the page and put it in the history list, everything works but I have a problem, if for example in a page I execute an operation (ajax), which changes the values ​​in the db and textually update a part of the page, if I browse elsewhere and return to this page, I find what was originally there and not the changes made, to see them correctly I have to refresh the page.</p>
  <p>I don't currently use any caching systems
  Some contents are loaded with ajax others are directly on the page</p>
  <p>window.history.pushState() is used only in the home page in the others I don't need it even if it happens on all</p>
  <p>in the example page I have this code</p>
  <pre><code>function init() {
  
    $('#weekDays').on('show.bs.modal', function(event) {
  
        var modal = $(this);
  
        $.ajax({
            type: 'post',
            cache: false,
            url: '/my_account/get_giorni_chiusura_sett',
            dataType: 'html'
        }).done(function(data) {
            modal.find('.modal-content').html(data);
        });
  
    });
  
    $('body').on('click', '#save-closing-days', function() {
        var dataString = $('#form-weekdays-close').serialize();
  
        $.ajax({
            type: 'post',
            cache: false,
            url: '/my_account/set_giorni_chiusura_sett',
            data: dataString,
            dataType: 'json'
        }).done(function(data) {
            if (data.update === 'ok') {
                var daysClose = $.map(data.giorni, function(v) {
                    return '&lt;strong&gt;' + v + '&lt;/strong&gt;';
                }).join(' - ');
  
                $('#list-days-close').html(daysClose);
  
                $('#weekDays').modal('hide');
            }
        });
    });
  }
  </code></pre>
  <p>when I arrive in the page the content is loaded without ajax and generated by php, the first function loads the content in the modal upon opening, the second one saves / updates the data on the database and updates the text on the DOM</p>
  <p>Closing days: <em><strong>Saturday</strong></em> - <em><strong>Sunday</strong></em></p>
  <p>Update and become</p>
  <p>Closing days: <em><strong>Sunday</strong></em></p>
  <p>Now I move to other pages from the menu and back, but I find it again:
  <em><strong>Saturday</strong></em> - <em><strong>Sunday</strong></em></p>
  <p>If I reload the page, the data is updated</p>