christo
christo

Reputation: 701

Jetty locking static files in Windows

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

Upvotes: 2

Views: 1110

Answers (1)

Joakim Erdfelt
Joakim Erdfelt

Reputation: 49462

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.

Upvotes: 1

Related Questions