Monday, April 10, 2017

Stop a certain view from caching in Laravel?

I am looking for a way to stop one view in particular from caching in Laravel. I have a website where it requires a special key on every page load to do something via ajax. What my users are doing is clicking 'back' on their browser and its displaying a cached version with the old special key? Meaning they are given a invalid special key error message and they aren't sure what this exactly means.

How can I force it to supply with a fresh copy, giving them a new special key?



via VoiD HD

Advertisement