If you want to use Cache, you can change its behavior in your "Response" object (returned by the controller method in this example):
public function myControllerMethod() { $response = Response::make('something'); $response->setLastModified(new DateTime("now")); $response->setExpires(new DateTime("tomorrow")); return $response; }
It works in my environment, I hope it helps.
EDIT:
If you want to install it globally, you can try this (in the app/start/ directory):
App::after(function($request, $response) { $response->setLastModified(new DateTime("now")); $response->setExpires(new DateTime("tomorrow")); });
rap-2-h
source share