Skip to content

Instantly share code, notes, and snippets.

@joeldbirch
Created March 29, 2013 03:23
Show Gist options
  • Save joeldbirch/5268562 to your computer and use it in GitHub Desktop.
Save joeldbirch/5268562 to your computer and use it in GitHub Desktop.

Revisions

  1. joeldbirch created this gist Mar 29, 2013.
    8 changes: 8 additions & 0 deletions iOS bfcache buster
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@

    if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
    $(window).on('pageshow', function(e) {
    if (e.originalEvent.persisted) {
    window.location.reload();
    }
    });
    }