1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/thumbnails/test/privacy_cache_control.sjs Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + * http://creativecommons.org/publicdomain/zero/1.0/ 1.6 + */ 1.7 + 1.8 +function handleRequest(aRequest, aResponse) { 1.9 + // Set HTTP Status 1.10 + aResponse.setStatusLine(aRequest.httpVersion, 200, "OK"); 1.11 + 1.12 + // Set Cache-Control header. 1.13 + let value = aRequest.queryString; 1.14 + if (value) 1.15 + aResponse.setHeader("Cache-Control", value); 1.16 + 1.17 + // Set the response body. 1.18 + aResponse.write("<!DOCTYPE html><html><body></body></html>"); 1.19 +}