Feature: option for disabling caching#56
Conversation
Codecov Report
@@ Coverage Diff @@
## master #56 +/- ##
==========================================
+ Coverage 99.04% 99.06% +0.02%
==========================================
Files 21 21
Lines 417 427 +10
Branches 41 43 +2
==========================================
+ Hits 413 423 +10
Misses 1 1
Partials 3 3
Continue to review full report at Codecov.
|
|
Here's another suggestion for the option name: {
"requestIgnorePatterns": [{
"method": "GET",
"urlPattern": "/pokemon/*/abilities"
}]
}From what I see, only the URL can match against the pattern. It would make sense to mention the term "url" in the "pattern" key name. |
|
I definitely like Request are not ignored, they are forwarded using Memento, they just aren't cached. |
ef4a5ee to
2b513a8
Compare
This pull requests adds a new option to the Memento configuation:
disableCachingPatterns, which is an array of objects that have amethodandpatternproperties.methodproperty is a case insensitive HTTP method.patternproperty is a glob tested against the incoming URL (the minimatch package is used as an implementation).Fixes #54 .