“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
6-5 http缓存之etag
发布时间:2023-05-12 21:59:47作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
关于lastModified,当第一次缓存到http缓存中时候会记录该字段lastModified的值。
当第二次请求的时候会服务端中的lastModified与http缓存中的lastModified比对,如果相同,则继
yii2.0.3中使用guzzleHttp发送post数据
发布时间:2023-05-12 02:42:32作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
首先说下我的需求就是通过豆丁网的忘记密码来向一个邮箱发送验证码。但不是我手动点击,而是通过程序来完成。为了解决前端跨域问题,所以前端只是将这个提交给后台。
我后台
再次遭遇可恶的composer require时候的ssl错误
发布时间:2023-05-12 00:25:48作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
像是下面这样,的错误
D:\phpstudy_pro\Extensions\php\php5.4.45nts>D:\phpstudy_pro\Extensions\composer1.8.5\composer require guzzlehttp/guzzle:~6.0
[Composer\Do
6-3 http缓存之缓存时机
发布时间:2023-05-11 22:21:18作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
正常响应头
Connection: keep-alive
Content-Type: text/html; charset=UTF-8
Date: Thu, 11 May 2023 11:27:17 GMT
Server: nginx/1.15.11
Transfer-Encoding: chunked
X-
5-1 页面缓存
发布时间:2023-05-11 14:18:57作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
behaviors
控制器中的behaviors方法是在action前缀方法之前执行的
实例如:
<?php
namespace app\controllers;
use yii\web\Controller;
class HelloController extends Cont