Google Chrome loads a source of PHP scripts

I am experiencing a behavior of Google Chrome (beta of Google Chrome 7.0.517.41) that I cannot understand. In some cases, Google Chrome downloads the PHP script source code, which is requested from my server and not executed. I do not have this problem with cURL or Firefox; when I request the same URL with them, the script runs correctly.

This seems rather strange to me, because I have to be a server problem, and it should work the same in every browser. I think that something must be missing, or Google Chrome is sending some unusual HTTP headers ... I don't know. I checked the Directive AddHandlerand AddTypein the Apache configuration files with no success. Do you have any idea what could be causing this?

+3
source share
1 answer

The solution to this problem was to clear the Google Chrome cache, which seems to be storing some cached data for too long. This was probably incorrect on the server, since it had previously sent raw PHP code, but due to caching, this problem persisted for Google Chrome even after fixing it.

Thanks John Crum for the suggestion.

+9
source

Source: https://habr.com/ru/post/1769873/


All Articles