prebid-cache-server-demo

by adam-browning

GitHub Readme.md

prebid-cache-server-demo

simple node.js cache server for prebid.js

  • Post an object containing "puts" array of bid response objects and get a uuid for each
  • you will receive an object contating a "responses" array of all uuids
  • Get stored bid-response by passing a uuid query string parameter

Cache server URL on Heroku:

https://perbid-cache-server-demo.herokuapp.com

METHODS

POST Example:

POST / HTTP/1.1 Host: localhost:3030 Content-Type: application/json User-Agent: PostmanRuntime/7.20.1 Accept: / Cache-Control: no-cache Postman-Token: 8b245b55-074d-4eb4-8e3a-fe6012d3858c,dcbeded9-6428-43e5-9b6b-0591867fe843 Host: localhost:3030 Accept-Encoding: gzip, deflate Content-Length: 1559 Connection: keep-alive cache-control: no-cache

{ "puts": [ { "type": "xml", "value": "<VAST version="3.0">\n \n \n prebid.org wrapper\n \n \n \n \n \n ", "ttlseconds": 100 } ] }

GET Example:

GET /?uuid=46896460-1c1d-11ea-b263-a5e9b0a042d5 HTTP/1.1 Host: localhost:3030 Content-Type: application/json User-Agent: PostmanRuntime/7.20.1 Accept: / Cache-Control: no-cache Postman-Token: 38ca9941-c61d-4905-90c6-8123895eed9d,a5c6cac2-10e4-4621-a281-5e7c7f54798e Host: localhost:3030 Accept-Encoding: gzip, deflate Content-Length: 1559 Connection: keep-alive cache-control: no-cache