Yes, you can specify the filename just like you'd do for content-disposition: attachment
, i.e. like this:
Content-disposition: inline; filename="foo.bar"
See this post for some useful information about this header: How to encode the filename parameter of Content-Disposition header in HTTP?