rails/actionpack-action_caching

Hypernova After Actions

gbateman opened this issue · 1 comments

Hey, so I'm trying to use action caching on a page that has server side rendered react using Hypernova, and I'm running into some issues. The problem is that in the action itself, Hypernova only puts tokens into the response, and then it replaces those tokens using an after action. Because of this, when trying to cache with it, the cache only stores the tokens and not the actual elements. Would it be possible to include an option for action caching to cache the response after after actions?

This would make it possible to use the two together without requiring some custom code gymnastics

Edit: Or if this already exists could someone help me find it?

Would it be possible to include an option for action caching to cache the response after after actions?

Maybe. Please do investigate.