Skip to content
Browse files

Cache write=true urls to their non-cache-busting equivalent

  • Loading branch information...
1 parent fa8e964 commit b62cf104906686389e053682b43d1af25dac2cac @isaacs isaacs committed Feb 15, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/get.js
View
2 lib/get.js
@@ -31,7 +31,7 @@ function get (uri, timeout, nofollow, staleOk, cb) {
var cacheUri = uri
// on windows ":" is not an allowed character in a foldername
- cacheUri = cacheUri.replace(/:/g, '_')
+ cacheUri = cacheUri.replace(/:/g, '_').replace(/\?write=true$/, '')
var cache = path.join(this.conf.get('cache'), cacheUri, ".cache.json")
// If the GET is part of a write operation (PUT or DELETE), then

0 comments on commit b62cf10

Please sign in to comment.
Something went wrong with that request. Please try again.