I use mod_headers
in htaccess file to add some response headers. It was working fine in Windows Local. When I migrated to a Mac, mod_headers
are not working.
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
All sites, but only in Mac (was working fine in Windows) -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes
Replication
- Create a new WP site in Local with Apache as web server.
- Add the following code to .htaccess (on top of the file)
<IfModule mod_headers.c>
Header set x-cache "true"
</IfModule>
- While visiting the site, we should see response header “x-cache: true”
System Details
-
Which version of Local is being used?
5.9.7+local-beta-5155 (also tried in non-beta version) -
What Operating System (OS) and OS version is being used?
MacOS Big Sur 11.1 with M1 (Apple Silicon) -
Attach the Local Log local-beta.log (113.1 KB)