Re: [solved] Rewriting occur on physical file request

Splash Forums PrettyFaces Users [solved] Rewriting occur on physical file request Re: [solved] Rewriting occur on physical file request

#20155

domdorn
Participant

“I don’t get the idea why there should be an automatic rewriting to physical files.”

Because PrettyFaces is basically just a Servlet Filter matching any Servlet Request.

For it to be able match only non existing files, PrettyFaces would have to create a new File-Handle for every request and look if this request is a physical file. In a Servlet 3 environment, this even gets more complicated, as files could be packaged in different jars, so they don’t even really “exist” in the filesystem. From a performance view,

this would be a real nightmare.

I suggest you simply make your rewrite rules more precise (e.g. using regular expressions) so they don’t match physical files.