0๐
โ
If you look at the default caching profile you can see that it ignores ajax requests
.
Copy this file, move it to your own code, remove:
if ($request->ajax()) {
return false;
}
Then update the config/response_cache.php
file and point the cache_profile
entry to your file.
Source:stackexchange.com