We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1515d53 + de4bc80 commit 585039fCopy full SHA for 585039f
lib/router/methods.js
@@ -54,6 +54,14 @@ var RFC5323 = ['SEARCH'];
54
55
var RFC5789 = ['PATCH'];
56
57
+/**
58
+ * PURGE Method for caching reverse-proxy
59
+ * http://wiki.squid-cache.org/SquidFaq/OperatingSquid#How_can_I_purge_an_object_from_my_cache.3F
60
+ * https://www.varnish-cache.org/docs/trunk/tutorial/purging.html
61
+ */
62
+
63
+var CACHE_PURGE = ['PURGE'];
64
65
/**
66
* Expose the methods.
67
*/
@@ -65,6 +73,7 @@ module.exports = [].concat(
73
, RFC3648
74
, RFC3744
75
, RFC5323
68
- , RFC5789).map(function(method){
76
+ , RFC5789
77
+ , CACHE_PURGE).map(function(method){
69
78
return method.toLowerCase();
70
79
});
0 commit comments