0

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

Molda
  • 5,619
  • 2
  • 23
  • 39
Serge Rosenberg
  • 196
  • 2
  • 5

1 Answers1

0

This was a bug, I have fixed it. Try to download latest beta version $ npm install total.js@beta. Thank you!

Peter Sirka
  • 748
  • 5
  • 10