How to access past published data in subsequent publication (infinite scroll)?

I am implementing an infinite scroll where subsequent publications (on scrolling down) need to know the previous data (loaded above).

I can store the subscribed data in a local state and pass it on the next publication but it’s an extra round trip for this data which the server should already know.

Is there anyway that a publication can know the data it sent in the previous one (of the same session)?