mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-13 02:37:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
16
toolkit/components/thumbnails/test/privacy_cache_control.sjs
Normal file
16
toolkit/components/thumbnails/test/privacy_cache_control.sjs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
function handleRequest(aRequest, aResponse) {
|
||||
// Set HTTP Status
|
||||
aResponse.setStatusLine(aRequest.httpVersion, 200, "OK");
|
||||
|
||||
// Set Cache-Control header.
|
||||
let value = aRequest.queryString;
|
||||
if (value)
|
||||
aResponse.setHeader("Cache-Control", value);
|
||||
|
||||
// Set the response body.
|
||||
aResponse.write("<!DOCTYPE html><html><body></body></html>");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue