I'm having an issue with the browser cache interfering with my Laravel application.
If the browser cache is disabled, everything works fine. However, if enabled, and the same link is clicked repeatedly, the Laravel method to create the view or collect data is not even executed.
The implications are manifold. For instance, a form to edit a resource or a grid which displays data (loaded form the server using ajax), do not show the current values until the browser is reloaded.
I've put a line in some of my methods which logs the current timestamp to prove this.
public function index()
{
Log::info( microtime() );
return View::make( $this->templates_root . 'index' );
}
No line turns up in the log, when a link is clicked repeatedly or a view is accessed once again. But it does if I reload the browser.
What can I do to prevent the browser from caching my views?