Support » Plugin: Simple Custom CSS » Simple Custom CSS browser caching issue

  • Hi John and Danny,

    Thanks for your plugin. I really like your elegant solution to injecting the css into the page header. So much that I have borrowed your technique for my own (first) plugin. I hope you don’t mind 🙂
    I did come across an issue (and a simple solution) that I thought you (and others) might be interested in.

    Under apparently random circumstances my css wasn’t being included. After much head scratching I found that my browser (Firefox) wasn’t making a GET request for the css. Suspecting a caching problem, I added a random number mt_rand() to the version parameter of wp_register_style() which has fixed my problem. This forces the browser to load the css “file” every time.

    I’m not sure if you or anyone else has come across this, but I hope it’s helpful

    Thanks again for making free plugin’s for the community.

    – Jerry

  • The topic ‘Simple Custom CSS browser caching issue’ is closed to new replies.