Title: Simple Custom CSS browser caching issue
Last modified: April 22, 2020

---

# Simple Custom CSS browser caching issue

 *  [jerrystewart99](https://wordpress.org/support/users/jerrystewart99/)
 * (@jerrystewart99)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/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.

 * ![](https://ps.w.org/simple-custom-css/assets/icon-256x256.jpg?rev=1819543)
 * [Simple Custom CSS Plugin](https://wordpress.org/plugins/simple-custom-css/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-css/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-css/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-css/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-css/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * 0 replies
 * 1 participant
 * Last reply from: [jerrystewart99](https://wordpress.org/support/users/jerrystewart99/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/simple-custom-css-browser-caching-issue/)
 * Status: not resolved