FOSHttpCacheBundle icon indicating copy to clipboard operation
FOSHttpCacheBundle copied to clipboard

`InvalidationListener` does not respect `cache_manager.generate_url_type`

Open mvhirsch opened this issue 9 months ago • 0 comments

InvalidationListener does not respect setting fos_http_cache.cache_manager.generate_url_type. I just noticed, because some of my (invalidation) requests used to have an absolute URL while some used absolute paths.

In this line:

https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/blob/b9a80ac0b4bd3954326ae53180a54292acef8386/src/EventListener/InvalidationListener.php#L130

I think this should be consistent and respect the setting; even if (like in my case) it's "auto" but using a custom_proxy.

mvhirsch avatar Mar 05 '25 14:03 mvhirsch