forked from mirrors/gecko-dev
Currently, soft reload uses the `VALIDATE_ALWAYS` flag to not only force revalidate the top level document, but also subresources. This causes content to be refetched from the web even if there are caches that are still valid and can be used. Chrome already has such behaviour to not revalidate all resources. Differential Revision: https://phabricator.services.mozilla.com/D122270
13 lines
384 B
JavaScript
13 lines
384 B
JavaScript
"use strict";
|
|
|
|
function handleRequest(request, response) {
|
|
if (getState("iframe_resource") == "") {
|
|
response.setHeader("Content-Type", "text/html", false);
|
|
response.write("first load");
|
|
setState("iframe_resource", "ok");
|
|
} else {
|
|
response.setHeader("Content-Type", "text/html", false);
|
|
response.write("second load");
|
|
setState("iframe_resource", "");
|
|
}
|
|
}
|