onSuccess of form post not running server connect action with query refresh

Do you get anything in the console for:

dmx.parse("serverconnectTest")

yes:

It looks like you have caching set somewhere - look at the headers -> cache-control

I see. I just do not know how and where it was set - I never use it:

Check they haven’t got some type of caching enabled by default from the server

Can you also share the code for your server connect element on the page?

Checked earlier but could not find any caching on hosting server. I also had site on a cloudways server with caching, but no apps I have loaded on there have ever done this.

<dmx-serverconnect id="serverconnectTest" url="dmxConnect/api/test.php" dmx-param:ref="query.ref"></dmx-serverconnect>

As you thought, that looks normal and no suggestion of caching

Maybe @patrick could help identify where the cache-control headers are coming from?

See this post where I reported this as a bug:

But I did change the code as part of testing.

The caching is probably set by your web server. Do you have access to the server configuration?

You could try to disable the caching using the .htaccess file.
How to turn off caching using .htaccess (a2hosting.com)

1 Like

Thanks for the help @bpj and @patrick. Never had this problem on this host, but maybe it is because I am using a dedicated server instead of shared hosting.

Adding an .htaccess file with the no cache code fixed the problem.