How to Reload HTML
Learn how to reload HTML files without restarting the server.
Important Note
This feature is recommended for test servers only. For battle servers, you should use the default setting.
Configuration
To enable automatic HTML reloading:
- Open your
server.properties
file - Find the
HtmCacheMode
setting - Change the value to
0
HtmCacheMode = 0
Default Settings
The default setting for HtmCacheMode
is 2
. Here's what each mode means:
0
- Automatic HTML reloading (test servers only)2
- Standard caching (recommended for battle servers)
Best Practices
- Use mode 0 only on test servers
- Always use mode 2 on battle servers
- No commands are needed to reload HTML with mode 0
- Changes to HTM files will be automatically detected
Usage
With HtmCacheMode = 0
:
- Make changes to your HTM files
- Save the files
- Changes will be automatically applied
- No server restart required
Note: This feature is particularly useful during development and testing phases. It allows for quick iteration and testing of HTML changes without server restarts.