Hi, I am using Oracle APEX 20.1 and ORDS 20.2. ORDS has an embedded jetty server which I can configure using *.xml files and put them into a folder named "etc". There is a folder with static css, javascript and image files that APEX uses. I need to enable gzip compression for that folder and instruct the browser to cache it's contents for at least 12 hours.
I created an xml file in the "etc" folder with the following contents:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<filter>
<filter-name>HeaderFilter</filter-name>
<filter-class>org.eclipse.jetty.servlets.HeaderFilter</filter-class>
<init-param>
<param-name>headerConfig</param-name>
<param-value>
"add Cache-Control: no-cache, no-store, must-revalidate"
</param-value>
</init-param>
</filter>
</Configure>
to send Cache-Control header and named it web.xml. But what happens is that ORDS craches . I am pretty sure that the problem is with the code because when I delete the file, everything works fine. Plus that the code does not refer to a specif directory i.e d:\apex\images. The other problem is that the above code is just for sending cache-control header but I do not know how to gzip compression on the folder's contents. So, I need to enable gzip for the directory's contents and need the browser to cache it's contents too. I appreciate your help with this problem. Thank you.