Title: Change Generated Filenames
Last modified: March 30, 2017

---

# Change Generated Filenames

 *  Resolved [CEMBTW](https://wordpress.org/support/users/cembtw/)
 * (@cembtw)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/change-generated-filenames/)
 * I know it is possible to change the filename prefix of optimized files, but would
   it be possible to change the naming scheme from the hash-like default to something
   static like a post/page id? Where is name generation handled?
 * I would rather be responsible for purging cached content after a change than 
   have bots and crawlers perpetually requesting long-purged files.
 * Thanks for the work on the plugin, by the way.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/change-generated-filenames/#post-8975030)
 * the hash-part is a hash of the aggregated JS or CSS before minification and actually
   allows re-use of the same file accross multiple pages/ requests [@cembtw](https://wordpress.org/support/users/cembtw/).
   so no, having a static post/page-id based naming would not possible without a
   major re-write which I think would not be an improvement as each page would then
   have it’s own optimized CSS/ JS, even if the contents would be identical from
   the one on the next page.
 * hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Change Generated Filenames’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/change-generated-filenames/#post-8975030)
 * Status: resolved