Support the ongoing development of Laravel.io →

jezmck

Joined 24 Apr 2017

Statistics

Threads 1
Replies 1
Solutions 1
Articles 0
posted 6 years ago

Response Cache-Control headers always 'private, must-revalidate', ignoring what I've set

I'm using the following, but this header is not set. return Response::view('doNotWantCachingOnThis')...

0 Likes
1 Replies
Solved
replied 6 years ago

Response Cache-Control headers always 'private, must-revalidate', ignoring what I've set

Turns out I can use the following ->header('Expires', '0', true)

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.