Exclude only 1 CSS line item from caching?
-
Hi there,
I just download and installed your plugin a few days ago and it is awesome! I am also thrilled that I can exclude only some JS scripts while still keeping aggregated inline JS. This is especially helpful as I have a multilingual site and most of the time the only difference is the JS is a minor one, for example “Ja” instead of “Yes”.
This does leave me with one question though. Is there a way to do something similar with only a certain CSS line items? How WPML works, as you may already know, is that a translated page/post/product/whatever gets a new page ID number. I have, for example, only one difference in the cached autoptimized css file between my two languages.
For English:
.menu-item-13429.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}And for German:
.menu-item-13430.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}Notice the only difference between them is the last two numbers behind “.menu-item-134XX”
It would be sad if I had to uncheck “Also aggregate inline CSS” just because of one css line item.
Do you perhaps have a workaround or idea for this?Many thanks in advance!
Cheers,
Michael- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Exclude only 1 CSS line item from caching?’ is closed to new replies.