Skip to content

Commit

Permalink
[FIX] Check for existing query parameters before appending timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Mar 1, 2016
1 parent a7f6066 commit ff88466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/asset/asset-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ pc.extend(pc, function () {
}

// add file hash to avoid caching
url += '?t=' + asset.file.hash;
var separator = url.indexOf('&') !== -1 ? '&' : '?';
url += separator + 't=' + asset.file.hash;

asset.loading = true;

Expand Down

0 comments on commit ff88466

Please sign in to comment.