是否可以使用appcache文件(缓存清单)来缓存Laravel视图?
其思想是缓存视图并使用web sql数据库来离线访问web应用程序。有可能吗?
谢谢你的帮忙
发布于 2013-07-10 04:56:07
使用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.
});https://stackoverflow.com/questions/17557126
复制相似问题