为什么公共/样式表文件中的样式表由Expressjs提供状态304?

时间:2015-02-17 21:03:16

标签: css node.js express http-status-code-304

我发现某些样式表,我可能刚刚更新了加载304状态代码。这是我在客户端的代码:

  <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"/>
<link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css"rel="stylesheet"/>
<link href="stylesheets/bootstrap-social.css" rel="stylesheet"/>
<link href="stylesheets/style.css" rel="stylesheet"/>
<link rel="stylesheet" href="stylesheets/divider.min.css"/>

这是我的package.json

{


"name": "login",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "node ./bin/www"
  },
  "dependencies": {
    "body-parser": "~1.10.1",
    "compression": "^1.3.0",
    "consolidate": "^0.10.0",
    "cookie-parser": "~1.3.3",
    "debug": "~2.1.1",
    "express": "~4.11.0",
    "handlebars": "^2.0.0",
    "helmet": "^0.6.0",
    "jade": "~1.9.0",
    "mongoose": "^3.8.22",
    "morgan": "~1.5.1",
    "multer": "^0.1.7",
    "passport-dropbox": "^0.1.2",
    "passport-github": "^0.1.5",
    "passport-google-oauth2": "^0.1.4",
    "passport-http": "^0.2.2",
    "passport-local": "^1.0.0",
    "passport-twitter": "^1.0.2",
    "serve-favicon": "~2.2.0",
    "socket.io": "^1.3.2"
  }
}

你能告诉我像compression之类的模块是否正在这样做吗?

0 个答案:

没有答案