Closed dsilhavy closed 5 months ago
@dsilhavy @rjb1000 I've added the support of Expires header. Implemented as below:
But I still have three concerns:
Thanks.
s-maxage
is for shared caches (proxies) and it is also not used in 26.512. No need to support s-maxage
. Ignore the cache-control
header in this case and use the expires
header.max-age
with the next response.Addressed in #55
Description
TS 26.512 Section 4.7.2.3 defines the procedure for polling the Service Access Information. The polling periodicity is defined as follows:
We currently support
Cache-control: max-age
headers but lack support for theexpires
header. The difference between both is defined as follows:The goal of this issue is to add support for the
expires
header and integrate the logic into thestartServiceAccessInformationUpdateTimer
method in theMediaSessionHandlerMessengerService
.In case both
max-age
andexpires
are present the values shall be translated to absolute times, compared and the earlier value shall be used.If an
age
header is present, that value shall be subtracted from the value defined inmax-age
.