Jetty locking static files in Windows

2019-07-09 04:03发布

问题:

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.


标签: Jetty