View Issue Details

IDProjectCategoryView StatusLast Update
0007032OXID eShop (all versions)4.08. Cachepublic2024-06-26 10:03
Reporterbdreissig Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version6.1.4 
Summary0007032: [EE] Cache-Control entry adds falsy semicolon
DescriptionIn ReverseProxyHeader.php, the setCacheAge() Method adds a falsy semicolon to the end of the Cache-Control HTTP header.

This breaks Varnish 6.0 header parsing and leaves beresp.ttl at zero for every request.
Steps To Reproduce- Use Varnish 6.0 as reverse proxy for an oxid EE 6.1.4 shop
- Add some logging for beresp.ttl in and header values in the Varnish VCL's vcl_backend_response sub
- Use varnishlog to track the header set by the shop on requests
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP Version7.1
Database Version5.7

Activities

QA

2019-09-17 16:04

administrator   ~0013004

There is indeed no syntax description which says how the line should end.
Both RFC and developer.mozilla.org are talking only about comma separated lists

See:
- https://tools.ietf.org/html/rfc7234#section-5.2.2.9
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

-MK