Complete the code to set a Cache-Control header that allows caching for 1 hour.
res.setHeader('Cache-Control', '[1]');
The Cache-Control header with public, max-age=3600 allows caching for 3600 seconds (1 hour).
Complete the code to set the ETag header with a unique value.
res.setHeader('ETag', '[1]');
The ETag value should be a quoted string, like "12345", to be valid.
Fix the error in setting the Expires header to 1 day from now.
const expires = new Date(Date.now() + [1]).toUTCString(); res.setHeader('Expires', expires);
86400000 milliseconds equals 1 day (24 hours * 60 minutes * 60 seconds * 1000 ms).
Fill both blanks to set Cache-Control for private caching and must-revalidate directive.
res.setHeader('Cache-Control', '[1], [2]');
Setting private allows caching only for a single user, and must-revalidate forces revalidation after expiration.
Fill all three blanks to set Cache-Control with max-age 600 and no-transform directives.
res.setHeader('Cache-Control', '[1]=[2], [3]');
This sets max-age to 600 seconds and disables transformations on the response.