Reputation: 42843
I have a PHP function, which prints text and also inserts some data in a database, something like this
function bla () {
echo "bla";
// here simple SQL for insert into table
}
I noticed very strange behavior which happens only in Firefox browser.
If I just refresh the page (F5), PHP's function doesn't insert data in the database, it only prints data, if change printable text, it prints new modified text, but database insert also does not happen.
Then, if select URL in Firefox address bar, and then push F5, the PHP function works fully, means database inserts and printing, both happen.
This just happens only in Firefox, in other browsers work as expected, every refreshing page and PHP's function works fully.
I know this sounds very strange, but it really happens, I tested this on localhost.
Firstly, I think this is cache, but as I said already, function prints any modified data at every refreshing, only SQL query not running, SQL insert runs only, If I select Firefox address bar and then refresh page?
I don't use any js
or cookie
in this case, this is plain PHP/PostgreSQL and Firefox deal.
Any experience with something like this?
Upvotes: 0
Views: 90