Background
I have an EC2 instance serving Websocket connections, with CloudFront over the top. Now I am serving dynamic content that cannot be cached within CloudFront so I've effectively disabled object caching by setting the "Cache Based on Selected Request Headers" option to "All".
I also need to handle query strings, so I had to mess with the "Query String Forwarding and Caching" option.
Question
My question is basically the title:
Can I make CloudFront forward all query strings, but cache based on none?
It seems I have three different options, and none of them do that, but I might be missing something.
For now, I've set the option to "Forward all, cache based on all".
Disclaimer
I don't actually know if what happens at the moment affects my application in any way (it doesn't seem to). Hopefully though, after reading some answers I can understand what's being cached as a result of that option being selected.