Title: Cloudfront CDN minified CSS cache busting
Last modified: August 21, 2016

---

# Cloudfront CDN minified CSS cache busting

 *  [leepowers](https://wordpress.org/support/users/leepowers/)
 * (@leepowers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cloudfront-cdn-minified-css-cache-busting/)
 * How can I force W3TC to use a different filename when creating minified files?
 * For instance let’s say the following CSS files are being minified (manually selected
   on the Minify settings at [http://mysite/wp-admin/admin.php?page=w3tc_minify](http://mysite/wp-admin/admin.php?page=w3tc_minify))
 *     ```
       http://mysite/wp-content/theme/mytheme/style1.css
       http://mysite/wp-content/theme/mytheme/style2.css
       ```
   
 * If I update these files and re-minify the name of the minified CSS file remains
   the same, even though the content of the file has changed. I need the name of
   the minified CSS file to change so the CDN will see and immediately serve this
   new file on page refresh.
 * If I add a cache buster to the filename a new minified file name is generated:
 * `http://mysite/wp-content/theme/mytheme/style1.css?2`
 * However I get the following error when attempting to minify:
 * `Recently an error occurred while creating the CSS / JS minify cache: File "/
   var/www/wp-content/themes/mytheme/style1.css?2" doesn't exist.`
 * And the minified CSS file no longer contains `style1.css`
 * How can I either:
 *  A) Force a new minified CSS file name when the file contents change. (And not
   when filenames change)
    B) Use query variables when manually entering CSS files
   to minifiy.
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

The topic ‘Cloudfront CDN minified CSS cache busting’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [leepowers](https://wordpress.org/support/users/leepowers/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/cloudfront-cdn-minified-css-cache-busting/)
 * Status: not resolved