serverless-api-gateway-caching
Advanced tools
Comparing version 1.8.0 to 1.8.1-rc1
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "serverless-api-gateway-caching", | ||
"version": "1.8.0", | ||
"version": "1.8.1-rc1", | ||
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.", | ||
@@ -5,0 +5,0 @@ "main": "src/apiGatewayCachingPlugin.js", |
@@ -0,0 +0,0 @@ # serverless-api-gateway-caching |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ const get = require('lodash.get'); |
@@ -33,8 +33,6 @@ const getResourcesByName = (name, serverless) => { | ||
// in v1.8.0 "lambda" integration check was removed because setting cache key parameters seemed to work for both AWS_PROXY and AWS (lambda) integration | ||
// reconsider if this becomes an issue | ||
// if (method.Properties.Integration.Type !== 'AWS_PROXY') { | ||
// without this check, endpoints 500 when using cache key parameters like "Authorization" or headers with the same characters in different casing (e.g. "origin" and "Origin") | ||
if (method.Properties.Integration.Type !== 'AWS_PROXY') { | ||
method.Properties.Integration.RequestParameters[`integration.${cacheKeyParameter.name}`] = `method.${cacheKeyParameter.name}`; | ||
// } | ||
} | ||
@@ -51,4 +49,8 @@ method.Properties.Integration.CacheKeyParameters.push(`method.${cacheKeyParameter.name}`); | ||
} | ||
// in v1.8.0 "lambda" integration check was removed because setting cache key parameters seemed to work for both AWS_PROXY and AWS (lambda) integration | ||
// reconsider if this becomes an issue | ||
// if (method.Properties.Integration.Type !== 'AWS_PROXY') { | ||
method.Properties.Integration.RequestParameters[cacheKeyParameter.name] = cacheKeyParameter.mappedFrom; | ||
method.Properties.Integration.RequestParameters[cacheKeyParameter.name] = cacheKeyParameter.mappedFrom; | ||
// } | ||
@@ -55,0 +57,0 @@ method.Properties.Integration.CacheKeyParameters.push(cacheKeyParameter.name) |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty'); |
@@ -0,0 +0,0 @@ module.exports = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
42774
622
2