Hello,
We're currently exploring an option to move a large-scale enterprise application to use LSCache. However from what I'm reading LSWS ignores existence of the "Cache-Control" header and instead suggests using pseudo-rewrite rules to control caching times.
The solution suggested is completely not acceptable for us, since the application dynamically scales the caching times based on business rules and has fully developed support for "Cache-Control". It currently properly sets "max-age" as well as "smax-age", expecting proxy server to respect "smax-age" while leaving browsers with "max-age" (which is how it suppose to be by the RFC).
Varnish offers such option by default, but it doesn't terminate SSL and adds another layer to the stack - if possible we will like to avoid that. Is it possible to achieve such scenario in LSWS?
Additionally the application uses "Vary" header on a custom (X-Foo: 1|0) header sent by API clients. Does LSCache handle "Vary" header properly, i.e. stores two distinct version of the resource for two values of the header?
I will be glad if someone can address the questions here, since currently we started trailing the LSCache and we're wandering in the dark slightly
We're currently exploring an option to move a large-scale enterprise application to use LSCache. However from what I'm reading LSWS ignores existence of the "Cache-Control" header and instead suggests using pseudo-rewrite rules to control caching times.
The solution suggested is completely not acceptable for us, since the application dynamically scales the caching times based on business rules and has fully developed support for "Cache-Control". It currently properly sets "max-age" as well as "smax-age", expecting proxy server to respect "smax-age" while leaving browsers with "max-age" (which is how it suppose to be by the RFC).
Varnish offers such option by default, but it doesn't terminate SSL and adds another layer to the stack - if possible we will like to avoid that. Is it possible to achieve such scenario in LSWS?
Additionally the application uses "Vary" header on a custom (X-Foo: 1|0) header sent by API clients. Does LSCache handle "Vary" header properly, i.e. stores two distinct version of the resource for two values of the header?
I will be glad if someone can address the questions here, since currently we started trailing the LSCache and we're wandering in the dark slightly