Title: Understanding Version used in query strings
Last modified: January 9, 2017

---

# Understanding Version used in query strings

 *  [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/understanding-version-used-in-query-strings/)
 * Hi, I’m sorry if this has been answered previously but I couldn’t find it. I 
   recently switched a site from using W3TC to WP Rocket. One difference I noticed
   is that W3TC seemed to add it’s own unique value to the query string for static
   resources like css and js files. This value would be changed every time I “busted”
   the browser cache by selecting “update media query strings”.
 * With WP Rocket, this doesn’t seem to be the case, it uses (or rather leaves) 
   the default query string like “?ver=2.1.8”.
 * My question is, if I manually update a file (ex. a stylesheet) and then upload
   it via SFTP…how can I increment that to ?ver=2.1.9 so that it will “bust” the
   browser cache of return visitors?
 * For example, if I didn’t even use a plugin and simply added the expires headers
   in my htaccess manually, then whenever I updated a file manually how would I 
   ensure it had a new “version” reflected in the query string? From what I can 
   see the version is hard coded to the version of the plugin or theme which owns
   the file, I’m not sure if I can alter this? Do I just adjust the commented version
   within the file itself?
 * Thanks to anyone who can explain this to me! I wish WP Rocket would simply append
   the unix timestamp for the last modified date/time of each file, that would make
   it so much easier…

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/understanding-version-used-in-query-strings/#post-8635644)
 * There should be some way to flush the cache so that a new cache is rebuilt from
   your updated files, regardless of what version number appears. I would expect
   that new cache will send the proper headers to cause browsers to refresh their
   content. The details of what happens are unique to WP Rocket, so if you need 
   further explanation or confirmation, I suggest you inquire at the [dedicated support forum](https://wp-rocket.me/support/)
   for WP Rocket.

Viewing 1 replies (of 1 total)

The topic ‘Understanding Version used in query strings’ is closed to new replies.

## Tags

 * [Query String](https://wordpress.org/support/topic-tag/query-string/)
 * [W3TC](https://wordpress.org/support/topic-tag/w3tc/)
 * [WP Rocket](https://wordpress.org/support/topic-tag/wp-rocket/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/understanding-version-used-in-query-strings/#post-8635644)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
