search

Home  >  Q&A  >  body text

node.js - express中static中间件的问题

使用static中间件时服务器中的静态资源是不是在第一次访问时就被传输到客户端缓存起来了?

怪我咯怪我咯2874 days ago355

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:49:59

    For clients with caching capabilities (such as browsers), if static resources are cached, they will be loaded from the cache when accessed in the future, which has nothing to do with static middleware.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:49:59

    static is only responsible for processing static resources, cache-related matters have nothing to do with static

    reply
    0
  • Cancelreply