Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Global setHeader() setting

$
0
0
Hi all,

I would like to add

response().setHeader("Cache-Control", "no-store");

to all my controller methods in my admin interface. This should prevent my
interface to interact with the browser back button (e.g. after logout). But
I don not want to add that line of code to all my controller methods...
So any solution for this out there?

Bests,
Sushi

Viewing all articles
Browse latest Browse all 6551

Trending Articles