I am facing a frustrating issue with my WordPress website as changes made in my .CSS file do not seem to reflect in Chrome, Firefox or Edge browsers.
The CSS is loaded directly from the
<link href="/wp-content/themes/mytheme/css/style.css" type="text/css" rel="stylesheet">
tag.
Despite making modifications to the CSS file, the browser continues to display the older cached version. Even after trying multiple solutions like refreshing with Ctrl+F5, disabling cache through DevTools, manually clearing cache, and hard reloads, none of them seem to solve the problem.
It is puzzling that even manual cache clearing does not work. The only temporary fixes I have found are waiting for around 10-15 minutes before reloading the page or renaming and relinking the .css file. While I have come across suggestions like using CSS versioning (style.css?v=1.0) as a workaround, I find it frustrating to rely on such methods.
This issue has left me perplexed. If anyone has any insights or solutions, I would greatly appreciate your help. Thank you.