dynamic-mobmenu.css is uncacheable
-
I may be missing the logic behind this, but why does the wp_enqueue_style() call for dynamic-mobmenu.css append a random value to the version string on each load?
In class-titan-css.php:
wp_enqueue_style( 'tf-compiled-options-' . $this->frameworkInstance->optionNamespace, $this->getCSSFileURL(), '', WP_MOBILE_MENU_VERSION . '-' . rand( 100, 999 ) );This makes the file completely uncacheable.
Can this be modified to instead append something like the timestamp of the last configuration change? Or a hash? I’ve removed the appended value entirely for my purposes but this will not suffice if I have to change the settings.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘dynamic-mobmenu.css is uncacheable’ is closed to new replies.