经过网友反馈发现php站点不能生成静态页面,这是因为php默认不返回当前页面的尺寸(Content-length),
组件不得到页面尺寸无法生成静态文件。 所以需要在HTTP头中构建Content-length属性,新版组件压缩包
中的PHP文件夹包含了需要构建的脚本auto_append_file.php、auto_prepend_file.php,
脚本的作用是计算当前页面的尺寸 配置步骤: 打开php.ini文件,在文件的最底部加上代码
[IsapiCache]
auto_prepend_file ="d:\xxx\auto_prepend_file.php"
auto_append_file="d:\xxx\auto_append_file.php"
其中x:\xxx表示脚本的物理路径,如(
auto_prepend_file =”E:\ISAPICache\php\auto_prepend_file.php”) 另:经过GZIP压缩的页面无法生成静态文件
组件不得到页面尺寸无法生成静态文件。 所以需要在HTTP头中构建Content-length属性,新版组件压缩包
中的PHP文件夹包含了需要构建的脚本auto_append_file.php、auto_prepend_file.php,
脚本的作用是计算当前页面的尺寸 配置步骤: 打开php.ini文件,在文件的最底部加上代码
[IsapiCache]
auto_prepend_file ="d:\xxx\auto_prepend_file.php"
auto_append_file="d:\xxx\auto_append_file.php"
其中x:\xxx表示脚本的物理路径,如(
auto_prepend_file =”E:\ISAPICache\php\auto_prepend_file.php”) 另:经过GZIP压缩的页面无法生成静态文件