Closed (fixed)
Project:
Shariff Social Media Buttons
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 May 2018 at 09:13 UTC
Updated:
2 Oct 2020 at 11:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirComment #3
crizThanks, makes sense and looks good!
This is not addressed by the patch, right? Any idea how this can be solved?
Comment #4
berdirThere's no easy way to solve that, in the end it's a core issue #2352009: Bubbling of elements' max-age to the page's headers and the page cache.
The reason we actually noticed this is that we have a custom response event subscriber that converts a non-zero (because too many things still set max-age 0 like the language switcher) max-age to the Expires header, which is the only thing that the internal page cache module respects.
That said, isn't the counter a separate JS request anyway and therefore completely separated from any kind of caching of the shariff html itself? In that case, this could actually just be removed completely..
Comment #5
crizOkay, thanks for the info!
I guess it is a separate JS request. But as I am not using the shariff backend so far I have to set it up and test to be sure.
Comment #6
berdirNeither am I, but I'm pretty sure that is the case because nothing is included in the markup except the backend URL. which means it is always up to date and the cache limitation could be removed completely?
Comment #7
crizYes, seems so. :)
Comment #8
1an commentedComment #9
crizComment #10
berdirmakes sense :)
Comment #12
crizThanks!