Jetty locking static files in Windows

允我心安 提交于 2019-12-10 23:42:19

问题


I do not see, my changes of the static files.

In the another resources recommending the following method:

Include to the webdefault.xml

<init-param>
    <param-name>useFileMappedBuffer</param-name>
    <param-value>true</param-value> <!-- change to false -->
</init-param>

But it not the working. Have any idea?

Jetty version: 8.1.8.v20121106


回答1:


The useFileMappedBuffer init-param is for file locking by the DefaultServlet.

If you can change your static files with an editor and save, with no error, then this configurable has no bearing for your question "I do not see my changes of the static files".

The likely scenarios:

  • Browser is caching the original response
  • The file you changed on disk is not the file that is being served by Jetty.


来源:https://stackoverflow.com/questions/14837716/jetty-locking-static-files-in-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!