|
I have an IIS server that I use as a text box for PHP development and I am having a problem where I'm writing PHP code and refreshing my web browser isn't reflecting the most current changes. It's making it a pain in the rear end when I'm trying to debug something and I'm seeing the cached version of the PHP file on the screen. It's a Windows 2016 server running IIS 10 and PHP 8.1.6 I'm using both Firefox 123.0 and Chrome 121.0 I turned off caching in IIS (Output Caching - Edit Feature Setting - uncheck cache and kernel cache) and in Chrome (Inspect - Network - Disable Cache) and in Firefox (about:config - network. http. use-cache - false) as well as refreshing the page using Ctrl-F5 How can I permanently turn off caching so I can speed up my debugging?
|
# ? Feb 25, 2024 23:28 |
|
|
# ? Apr 29, 2024 05:37 |
|
I can recommend explosions. No server, no caching
|
# ? Mar 2, 2024 17:55 |
|
Is your domain on Cloudflare? If so, put it in development mode and/or turn off proxying in the DNS section for the A/CNAME records you're accessing. ---------------------------- AI says: To disable server-side caching on a Windows 2016 server running IIS 10 and PHP 8.1.6, you can follow these steps: 1) Disable Output Caching in IIS: It seems you might have both client-side and server-side output caching enabled1. You can disable server-side output caching by removing the output caching rule from your IIS configuration1. 2) Configure Client Cache in IIS: You can set the <clientCache> section in the <staticContent> section of your IIS configuration as follows1: code:
Remember to restart your IIS server for the changes to take effect. ModeSix fucked around with this message at 16:35 on Mar 10, 2024 |
# ? Mar 10, 2024 16:31 |
|
Are your HTTP responses' headers including a sensible value for cache-control? Even if your server is backed by a CDN (though I'm reading your question to suggest IIS is running locally), a value of no-store or something of that ilk ought to bypass its cache.
|
# ? Mar 16, 2024 18:33 |
|
For browser caching issues, I've had great success by using incognito/private windows for debugging.
|
# ? Apr 21, 2024 00:52 |