visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

give some chances for old browsers #74

Closed RobinQu closed 11 years ago

RobinQu commented 11 years ago

support for GET :resource/destroy and POST :resource/update

karl-gustav commented 11 years ago

Out of curiosity; what browsers/versions does not support PUT/DELETE?

RobinQu commented 11 years ago

Basic html anchors cannot change its http method when sending requests.

vendethiel commented 11 years ago

which is why we have methodOverride, isn't it?

emmanuel commented 11 years ago

I don't think there is any place for GET /resource/destroy to be interpreted as a DELETE. That is out of alignment with HTTP semantics in important ways.

Look up the history of the Google Web Accelerator for some concrete examples of what can happen when you disregard the semantics of the protocol.

tj commented 11 years ago

eek yeah GET should absolutely not destroy data, GET should be idempotent.