asvae / laravel-api-tester

Test your routes without hassle
http://laravel-api-tester.asva.by/
MIT License
354 stars 52 forks source link

Support ETag. #28

Open ghost opened 8 years ago

ghost commented 8 years ago

Re-click on the "Send Request" can cause an error if the result of the first request received the header ETag. A second request is transmitted header "If-None-Match", but the server does not correctly handle 304 redirects (Not Modified).

Solutions:

  1. To handle 304 redirect on the server before sending the response
  2. To prevent cache on the client side
  3. To handle 304 on the server and add the option "cache" on the frontend

@greabock aware of the problem.