Skip to content

Commit

Permalink
♻️ Do not add htop parameter to POST requests when cache option is …
Browse files Browse the repository at this point in the history
…configured
  • Loading branch information
skerit committed Nov 16, 2023
1 parent 997d6bc commit 14f9a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,7 @@ Renderer.setMethod(function registerElementInstance(element) {
*
* @author Jelle De Loecker <jelle@develry.be>
* @since 1.0.0
* @version 2.1.6
* @version 2.3.15
*
* @param {String} href The url to go to
* @param {Object} options Options
Expand Down Expand Up @@ -2741,7 +2741,7 @@ Renderer.setMethod(function fetch(href, options, callback) {
}

// Add time-on-page to post requests
if (options.post) {
if (options.post && options.cache == null) {
url.param('htop', ~~Blast.performanceNow());
}

Expand Down

0 comments on commit 14f9a23

Please sign in to comment.