B2G/gecko/browser/components/thumbnails/test/privacy_cache_control.sjs
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
function handleRequest(aRequest, aResponse) {
  aResponse.setStatusLine(aRequest.httpVersion, 200, "OK");
  let value = aRequest.queryString;
  if (value)
    aResponse.setHeader("Cache-Control", value);
  aResponse.write("<!DOCTYPE html><html><body></body></html>");
}
function handleRequest ( aRequest , aResponse ) { aResponse . setStatusLine ( aRequest . httpVersion , 200 , "OK" ) ; let value = aRequest . queryString ; if ( value ) aResponse . setHeader ( "Cache-Control" , value ) ; aResponse . write ( "<!DOCTYPE html><html><body></body></html>" ) ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
// Set HTTP Status // Set Cache-Control header. // Set the response body.