SiteGenesis / Server-side JS / Source: app_storefront_controllers/cartridge/scripts/request/OnRequest.js

'use strict';

 * The onRequest hook is called with every top-level request in a site. This happens both for requests to cached and non-cached pages.
 * For performance reasons the hook function should be kept short.
 * @module  request/OnRequest

var Status = require('dw/system/Status');

 * The onRequest hook function.
exports.onRequest = function () {
    return new Status(Status.OK);

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.