Sorry I couldn't figure this out by searching.

I'm using ProxyServlet to front a locally hosted javascript
compilation service that, when executed, compiles a bunch of *.js
files together.  It then returns the result back to the caller of the
ProxyServlet.  This compiler service is pretty slow.

I'd like to cache the result of that output to a file 'app.cached.js'
and serve the file content directly rather than callout to the
compiler service if the cached file exists.  Using a separate task,
I'll watch for changes in the js/ filesystem tree and delete the
app.cached.js file to ultimately trigger recompilation.

What in ProxyServlet do I override to pipe the file stream to the
response?  Should I be using AsyncMiddleManServlet instead?

Thank you,
Paul
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to