Replies: 1 comment
-
Why is the first arg Anyway, there's no indication of what The best you can do is using a fresh app (like pagy rails.ru) with a fresh collection and try to reproduce the problem. Without some real code it's difficult to help you "theoretically". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm facing an issue with the Pagy gem in my Ruby on Rails application, where the HTTP cache does not expire when records are updated on pages other than the first page. Specifically, when any records from pages other than the first page get updated, the cache for those pages does not seem to expire or refresh. As a result, users still see outdated records when navigating through the paginated pages, even though the database records have been updated.
@pagy, @records = pagy(@records, items: 8)
fresh_when etag: @records.maximum(:updated_at), last_modified: @records.maximum(:updated_at), public: true
Beta Was this translation helpful? Give feedback.
All reactions