腾讯公益404错误页面https

之前写过一篇关于404页面的:https://note.t4x.org/other/website-welfare-page/,最近把错误页面也准备https化。

腾讯404主要依赖于三个js:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/other/https-tencent-404/

http://www.qq.com/404/search_children.js
http://qzone.qq.com/gy/404/data.js
http://qzone.qq.com/gy/404/page.js 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/other/https-tencent-404/

search_children.js:


其实就是两个js:

备注:data.js可以直接调用腾讯的:https://qzone.qq.com/gy/404/data.js,但是由于腾讯data.js里面图片是http,强迫症最好本地化一下。page修改下homepage然后本地化一下,直接用。
定时任务:将脚本加入定时任务,即可保证定时更新了。

基本就实现我的要求了。马马虎虎看吧。两个js我都缓存到性能魔方的cdn上面了,缓存一天时间。文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/other/https-tencent-404/

效果:https://error.t4x.org/404.html文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/other/https-tencent-404/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/other/https-tencent-404/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onJanuary 2, 2017
  • 原文链接:https://note.t4x.org/other/https-tencent-404/
匿名

Comment

Anonymous

Slide puzzle verification.