且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTTP缓存头设置weblogic

更新时间:2023-09-18 10:04:52

静态内容由weblogic.servlet.FileServlet提供,所有Web应用程序均具有

Static content is served by a weblogic.servlet.FileServlet that all web applications have by default but I couldn't find any way to configure HTTP headers. So either replace this servlet with your own servlet or use a Filter.

但是上面的评论是正确的,使用Web服务器提供静态内容是正确的方式:Web服务器在此方面做得更好,而应用程序服务器除提供静态文件外还有其他事情要做.

But the above comment is right, using a web server to serve static content is the "right" way to go: a web server does a better job at this and the application server has other things to do than serving static files.