Varnish HTTP Purge
[resolved] custom.css not purging (9 posts)

  1. daileycon
    Posted 2 years ago #

    Does the new Purge Varnish Cache button not purge css files? My theme uses a custom.css that I edit all the time (perfectionist) and I can't ever get it to purge. I have to wait all day for the changes to take effect.


  2. You should press the 'purge all' button on the main admin dashboard.

    As the FAQ mentions, no, it doesn't purge CSS. Never has, probably never will, since that isn't content.

    Why doesn't my cache purge when I edit my theme?
    Because the plugin only purges your content when you edit it. That means if you edit a page/post, or someone leaves a comment, it'll change. Otherwise, you have to purge the whole cache. The plugin will do this for you if you change your theme, but not when you edit your theme.

    That said, if you use Jetpack's CSS editor, it will purge the whole cache on save.

  3. daileycon
    Posted 2 years ago #

    I'll try some curl then, according to DreamHost:

    $ curl -X PURGE "http://mydomain.com/wp-content/themes/mytheme/style\.css"

  4. That works too :)

    The plugin's just for content, as the logic behind it is we shouldn't be messing with our CSS that much. Not that I don't have the same problem. Command line will give you the best control for that :)

  5. daileycon
    Posted 2 years ago #

    Ok cool. Thanks Mika

  6. jptdesrosiers
    Posted 1 year ago #

    I know that technically Varnish has never purged CSS, but I was actually using it to do so.

    Since the latest WordPress update, or something, I can no longer use Varnish to purge my CSS. Is there any other way that I can do that? I've tried clearing my browser cache manually, but it isn't working at all.

  7. jptdesrosiers - This post is resolved, so generally you should NOT post in it but make a new one for yourself. :)

    That said, in the month since this was resolved, there is a Purge All button. However it only works if you have regex purging in Varnish.

  8. jptdesrosiers
    Posted 1 year ago #

    Oh shoot, so sorry!

    How do I get regex purging?!

  9. It has to be set up in your Varnish config. No idea how to do it myself :/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Varnish HTTP Purge
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.