Your comments

Sounds great, thanks!  When there's a user-specified year and month I would hope the data isn't changing much and so a long cache should be fine there. :-)

Oh!  I didn't consider caching.  So the reason it worked without the parameter isn't that the parameter has an issue but that I hadn't previously queried that exact URL so there was nothing cached.

Thanks for the tip about using the exact year and month, which we could get from the environment and then send.  That said, a shorter cache would probably help too. :-)

Thanks for the info and the quick response.