electrode-io / electrode-ota-server

Electrode Over The Air Server for hot deployment of React Native and Cordova mobile apps
Other
204 stars 40 forks source link

temp api to download packages to validate proxy cache #125

Closed scrajesh closed 4 years ago

scrajesh commented 4 years ago

/foo_getp/{hash} sends standard cache-control header to enable caching in proxy(Edgecast) It's a temporary api to validate the caching. It's not exposed anywhere.

Existing /storagev2/{hash} will not send any cache-control headers.

jchip commented 4 years ago

where's the part that sets the HTTP cache expiration header?

scrajesh commented 4 years ago

where's the part that sets the HTTP cache expiration header?

you can find it here in the new temporary api: https://github.com/electrode-io/electrode-ota-server/blob/master/electrode-ota-server-routes-acquisition/src/index.js#L107