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.
我正在处理现有的 dojo 应用程序,该应用程序在每个页面更改时都请求相同的静态内容。
有没有办法配置应用程序以便缓存此内容?....即每个http请求都有缓存控制标头?
这与 Dojo 或任何其他 javascript 框架无关。
您可以在 Content Server (Apache / Nginx) 或应用程序服务器中定义缓存控制配置。(如果内容是由后端服务器创建的)。