Support the ongoing development of Laravel.io →
Cache Views Blade
Last updated 2 years ago.
0

example?

Last updated 2 years ago.
0

As an ajax request? Make the url unique so it doesn't cache the page in the browser..

if you are using jQuery you can global disable all requests..

$.ajaxSetup({
                cache : false,
                timeout : 120000
            });          

or do it individually in the config of each request you don't want cached..

If no jQuery just append "?_=time()" to your url to make it unique and is essentially what the above does behind the scenes!

Last updated 2 years ago.
0

I added the cache: false to my ajax and this seems to have worked! Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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.