• I have modified some CSS and JS for my site and simply cannot get it to update in a browser. I need to force this from the server side upon modification. I’ve tried wp_enqueue_style in functions.php and it didn’t work; it worked for the main stylesheet, but it isn’t working for these other files. I don’t want to override there for every CSS or JS anyway; I simply want updates on modification. I’ve tried using .htaccess with active on and defaults set to “modification”, and that didn’t work either. How can this be accomplished?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do you have any caching plugins (or host-based caching) for your site? If so, clear the caches (and disable caching while you’re working).

    Thread Starter jenvander

    (@jenvander)

    Yes, I have W3 Total Cache, it lodges itself under the Performance menu. I’m not sure which cache to purge, and I’d like to purge minimally. I tried the Browser Cache, which contains the JS/CSS/HTML caching, but it didn’t work. I tried the Page Cache as well, but it did not work either. Object cache is disabled.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Disable W3TC entirely and see if it makes a difference. If so, re-enable it and purge all its caches.

    Thread Starter jenvander

    (@jenvander)

    Neither disabling nor purging all caches worked. What else could be happening?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, explain to me what you’re trying to do and please provide a link to your site.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Modified css and javascript are not updating in browser’ is closed to new replies.