PHP script rerun on IIS

Discuss server installationa nd configuration issues here

Moderators: egami, macek, gesf

Post Reply
Misulache12
New php-forum User
New php-forum User
Posts: 8
Joined: Wed Jan 28, 2015 2:16 am

Wed Jan 28, 2015 2:42 am

Hello,
I have a JS script in a HTML page from witch I execute an XMLHttpRequest(,) to call a PHP script. The PHP script returns some data from a MySQL database, data witch I display in my HTML calling page. I surprisingly seen that if I change the PHP script and make a refresh in browser (IE11) my HTML calling page reloads but rerun the PHP script without the changes I've lately made. If I totally close the browser and reload the HTML page the PHP script runs with the changes I've lately made. I think it's a cache problem but I don't know from where to catch it.

Misulache12
New php-forum User
New php-forum User
Posts: 8
Joined: Wed Jan 28, 2015 2:16 am

Thu Jan 29, 2015 1:36 am

Thank's,
I've stated at the begining of my php script the following lines:
header("Cache-control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
and my script is reloaded in the correct form by the HTML calling page.

Post Reply