Hi Flexmonster Team,
I have flexmonster accelerator running on Wildfly (as described here). Accelerator cache is disabled.
var url = "./flexmonster/ClearCache/";
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", url, false );
xmlHttp.send( null );
But I’m getting the following error message:
ERROR. Operation is not allowed. Request was performed from the remote host.
Thx for your help.
Thank you for posting your question.
Please note that by default the
ClearCache only works when triggered on the host machine. In other words, all requests to the
ClearCache outside of the localhost will be refused.
In case you want every user to have the right to clear the cache, we would suggest setting up a proxy between the user and your server which would redirect the user’s request to trigger the
ClearCache on the server with the data.
Please let us know if this helps.