Skip to content

Commit ff92bca

Browse files
authored
Merge pull request #668 from Peergos/feat/no-localhost-block-cache
do not cache blocks on localhost
2 parents 87115c3 + bbfee28 commit ff92bca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vendor/priors/gwt.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,11 @@ var cache = {
265265
this.isOpfsCachingEnabled = false;
266266
this.isIndexedDBCachingEnabled = false;
267267
this.desiredCacheSize = 0;
268+
268269
this.init = function init(maxSizeMiB) {
269270
let that = this;
271+
if (window.location.hostname == "localhost")
272+
return;
270273
bindCacheStore(that);
271274
isOPFSAvailable().thenApply(function(isOpfsCachingEnabled) {
272275
isIndexedDBAvailable().thenApply(function(isIndexedDBCachingEnabled) {

0 commit comments

Comments
 (0)