Saturday, 18 March 2017

How to rewrite Cache-Control header?

Trying to rewrite Cache-Control header with

self.header('Cache-Control', 'max-age=86400,public');
self.view('view');

It doesn't work. Header still the same - Cache-Control: private. Also tried to append headers to view function:

self.view('view', {}, {'Cache-Control': 'max-age=86400,public'});

Still not working



via Serge Rosenberg

No comments:

Post a Comment