mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
anti-ie defensive anti-caching
This commit is contained in:
parent
74ab93a851
commit
43bbf96024
@ -64,6 +64,10 @@ XMLSTRUCT *xml_init(WS_CONNINFO *pwsc, int emit_header) {
|
||||
|
||||
pxml->pwsc = pwsc;
|
||||
|
||||
/* the world would be a wonderful place without ie */
|
||||
ws_addresponseheader(pwsc,"Cache-Control","no-cache");
|
||||
ws_addresponseheader(pwsc,"Expires","-1");
|
||||
|
||||
if(emit_header) {
|
||||
ws_addresponseheader(pwsc,"Content-Type","text/xml; charset=utf-8");
|
||||
ws_writefd(pwsc,"HTTP/1.0 200 OK\r\n");
|
||||
|
Loading…
Reference in New Issue
Block a user