diff --git a/mw_redis_cache.go b/mw_redis_cache.go index 2c34554704f3..59459877b48f 100644 --- a/mw_redis_cache.go +++ b/mw_redis_cache.go @@ -101,7 +101,7 @@ func (m *RedisCacheMiddleware) decodePayload(payload string) (string, string, er func (m *RedisCacheMiddleware) ProcessRequest(w http.ResponseWriter, r *http.Request, _ interface{}) (error, int) { // Only allow idempotent (safe) methods - if r.Method != "GET" && r.Method != "HEAD" { + if r.Method != "GET" && r.Method != "HEAD" && r.Method != "OPTIONS" { return nil, http.StatusOK }