LiteSpeed Cache bypass with text/plain scripts
-
Hello, we are currently investigating a potential compatibility issue between LiteSpeed Cache and third-party script blocking mechanisms (specifically Complianz).
When a Facebook-related external script is blocked by Complianz, its type is changed from text/javascript to text/plain.
This is expected on their side for consent management purposes.
However, we are observing that, in this scenario, LiteSpeed seems to bypass or not properly process/cache this resource.
Could you please confirm whether LiteSpeed Cache ignores or skips scripts when their MIME type is changed to text/plain? Could this behavior result in a cache bypass or prevent proper optimization/localization?
Additionally, we would like to ask a related question: when a resource is localized (for example, an external JS hosted locally), is there a way to define a specific cache expiration (TTL) for that localized file within LiteSpeed Cache?
Understanding this would help us better control caching behavior for third-party scripts.
Thank you in advance for your support.
You must be logged in to reply to this topic.