ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 68 - Certified B2C Commerce Developer discussion

Report
Export

Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?

A.
server.get('Show', cache.applyDefaultCache, function (req, res, next) {// code});
Answers
A.
server.get('Show', cache.applyDefaultCache, function (req, res, next) {// code});
B.
<iscache varyby="price_promotion" type="relative" status="on"/>
Answers
B.
<iscache varyby="price_promotion" type="relative" status="on"/>
C.
server.get('Show', function (req, res, next) {//code}).applyDefaultCache();
Answers
C.
server.get('Show', function (req, res, next) {//code}).applyDefaultCache();
D.
<iscache type="relative" hour="24"/>
Answers
D.
<iscache type="relative" hour="24"/>
Suggested answer: A

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fsfrajsdoc%2Fjs%2Fserver%2Fapp_storefront_base_cartridge_controllers_Page.js.html

asked 23/09/2024
Shaun Kilmartin
26 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first