sjs_huge-css-server.sjs (737B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 "use strict"; 4 5 function handleRequest(request, response) { 6 response.setStatusLine(request.httpVersion, 200, "Och Aye"); 7 8 response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); 9 response.setHeader("Pragma", "no-cache"); 10 response.setHeader("Expires", "0"); 11 response.setHeader("Content-Type", "text/plain; charset=utf-8", false); 12 13 // Taken from devtools/shared/webconsole/network-monitor 14 const NETMONITOR_LIMIT = 1048576; 15 16 // 2 * NETMONITOR_LIMIT reaches the exact limit for the netmonitor 17 // 3 * NETMONITOR_LIMIT makes sure we go past it. 18 response.write("x".repeat(3 * NETMONITOR_LIMIT)); 19 }