Skip to content

Commit

Permalink
add a cache busting query parameter to the request, see phetsims/jois…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Sep 23, 2024
1 parent 6495589 commit 2420597
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ph-scale-basics_description_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ <h3 class="no-pad">State Descriptions for pH Scale</h3>
reject( err );
} );

request.open( 'GET', `./js/description/${file}`, true );
// Add a random timestamp to the request to prevent caching
const timestamp = new Date().getTime();
request.open( 'GET', `./js/description/${file}?v=${timestamp}`, true );
request.send();
} );
};
Expand Down

0 comments on commit 2420597

Please sign in to comment.