Lei's Home


  • 首页

  • 归档

  • 标签

Http缓存策略总结

发表于 2016-06-10   |  

Expires策略

Expires是Web服务器响应消息头字段,在响应http请求时告诉浏览器在过期时间前浏览器可以直接从浏览器缓存取数据,而无需再次请求。不过Expires 是HTTP 1.0的东西,现在默认浏览器均默认使用HTTP 1.1,所以它的作用基本忽略。

阅读全文 »

Express源码解析之next

发表于 2016-06-08   |  

最近公司在使用node做前后端分离,采用的web框架是express,所以对express框架进行了深入的了解,前段时间写了篇关于express路由的文章,但是在那篇文章中貌似少了一个很重要的内容,就是express的next,所以今天单独来说说express的next。

阅读全文 »

Express源码解析之Router

发表于 2016-06-07   |  

express作为nodejs平台下非常流行的web框架,相信大家都对其已经很熟悉了,对于express的使用这里不再多说,如有需要可以移步到http://www.expressjs.com自行查看express的官方文档,今天主要是想说下express的路由机制。

阅读全文 »

Hello World

发表于 2016-06-06   |  

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Leijianning

Leijianning

4 日志
5 标签
© 2016 Leijianning
由 Hexo 强力驱动
主题 - NexT.Mist