Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们使用 nginx 来提供静态地图图块。平铺(png 文件)存储在磁盘上。我们认为 nginx 每次都检索文件既慢又麻烦。因此,我们计划将最常用的切片保留在缓存中。
是否可以将 nginx 与 Memcached 等缓存机制集成?
如果是静态文件,我建议对客户端计算机上的缓存文件使用 expires 。
请参阅http://nginx.org/en/docs/http/ngx_http_headers_module.html
您也可以设置 gzip。