Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 appcache 文件(缓存清单)来缓存 Laravel 视图?
这个想法是缓存视图并使用 web sql 数据库离线访问 web 应用程序。可能吗 ?
谢谢你的帮助
使用App::before()和App::after()事件...你可以这样做:
App::before()
App::after()
App::before(function() { $path = Request::path(); // find cached file, if available, and send that instead? }); App::after(function($request, $response) { // $response is the rendered HTML output.. do storage here. });