I am developing a media server, the basic functionality is to serve an image, which is done the following way
where :id is the id of the image.
You may want to ask for a specific size, with some rules I will provide.
Question: Which option do you think is better? I believe the second one to be more RESTful and beautiful, but we will be using a CDN and varnish for cache, so if we get
we will have 2 hits when we should have 1