Skip to content
Discussion options

You must be logged in to vote

I think I have a solution that fits my usecase:

If I do:
String responseHTML = weatherPageInstance.render();

rather than returning the weatherPageInstance, this forces weatherPageInstance to fully render, which means all cache-controls, returned by requests for data to build the weatherPageInstance. will have resolved.

Which means I can set the cache-control header in my controller.

:-)

Not sure if this is the right, or best way, but it works for me.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@TonyWeston
Comment options

@TonyWeston
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by TonyWeston
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants