Stylesheet not updating in Cache/MaxCDN

I recently had to amend the contact form on a client’s website footer, migrating them from Contact Form 7 to Gravity Forms. The site, which is WordPress, uses MaxCDN, and Fastest Cache Premium. I applied a handful of css changes to the child theme style.css file but for the life of me couldn’t get the changes to appear. I could see that the style.css had my changes but the cached version didn’t reflect these changes. I purged MaxCDN several times, and the browser, and Fastest Cache. After a bit of head scratching I figured out that I needed to amend the Version number in the child theme style.css file so that the enqueued version number ?v1.0.x increased and thus the cache updated.

Hopefully this saves someone else from wasting 30mins…

 

Article Attachments

Was this article helpful?

Related Articles