- Keep the crawler
User-Agentwhen CloudFront does not forward it. The viewer-request function now stores the header value as a string (it stored the raw header object before, so the value was unusable), the origin-request function restoresUser-AgentfromX-User-Agent, and the cache behavior forwardsX-User-Agent. Without this, Prerender.io receivedAmazon CloudFrontas the crawler identity. - Bumped the
AWS::Lambda::Versionlogical IDs, so a stack update publishes new function versions. - Added the
X-Prerender-Int-Versionheader (2.0.0), sent next toX-Prerender-Int-Type: cloudfrontand forwarded by the cache behavior, so the origin of a request stays identifiable when theUser-Agentis restored. Absence of the header means a stack older than 2.0.0.
The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs8.10) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 579f3922-7baa-11e9-adaf-11ff68a3ace1)