- last edited on
I wanted to configure the Cache-Control header in Knox, but i can't find if there's any setting to do so.
I want to define
Cache-Control: no-cache, no-store, must-revalidate
Is it possible to have this setting configured?
I cloned Knox git repo (commit 92b1505a), which includes KNOX-895 (2d236e78), run it locally with added WebSocket service to sandbox topology.
[tulinski]$ wscat -n --auth 'user:password' -c wss://localhost:8443/gateway/sandbox/echows
[tulinski]$ sudo ngrep -W byline host echo.websocket.org
T 192.168.0.16:59952 -> 18.104.22.168:80 [AP]
GET / HTTP/1.1.
Authorization: Basic dXNlcjpwYXNzd29yZA==.
T 22.214.171.124:80 -> 192.168.0.16:59952 [AP]
HTTP/1.1 101 Web Socket Protocol Handshake.
Date: Mon, 16 Oct 2017 14:23:49 GMT.
Server: Kaazing Gateway.
Authorization header is passed to the backend service.
Thanks for your answer,
But i was looking into have configured the Cache-Control.
I see that in your example you still have Cache-Control=no-cache and i wanted to add more settings into this header.