summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3b9c243..686d20c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -354,6 +354,15 @@ nostreamheader:
* won't be completed till we call soup_message_body_complete() */
soup_message_set_status (msg, SOUP_STATUS_OK);
+ /* Make sure that browsers never cache our responses */
+ soup_message_headers_append (msg->response_headers,
+ "Cache-Control",
+ "no-cache, no-store, must-revalidate");
+ soup_message_headers_append (msg->response_headers,
+ "Pragma", "no-cache");
+ soup_message_headers_append (msg->response_headers,
+ "Expires", "0");
+
out:
gst_object_unref (template);
gst_object_unref (srcpad);