If-None-Match koşulu geçerli ETag ile eşleşen koşullu bir GET isteğinin cevabı: önbelleğe alınmış kopyanız hala geçerli, bu nedenle hiçbir gövde gönderilmiyor.
Tanımlandığı yer RFC 9110 §15.4.5 — 304 Not Modified · MDN referansı
Doğrulayıcısı olan, iyi önbelleğe alınmış her dosya ve API yanıtı. Yoğun bir sitenin harcamadığı bant genişliğinin büyük kısmının arkasındaki koddur.
Çoğu istemcinin hiç kullanmadığı en ucuz performans kazancı. ETag'i sakladığınızı, geri gönderdiğinizi ve boş 304 gövdesini hata değil önbellek isabeti olarak ele aldığınızı test edin.
304 yanıtının gövdesi yoktur ve asıl nokta da budur — önbelleğe alınmış kopyayı sunun. Size verilen doğrulayıcıyı aynen geri gönderin: If-None-Match'te ETag veya If-Modified-Since'de Last-Modified tarihi. Bir doğrulayıcı sentezlemeyin ve ETag'den tırnak işaretlerini veya zayıf ön eki kaldırmayın.
Bu oyun alanında 16 uç nokta 304 ile yanıt veriyor. Hepsi ücretsizdir, kayıt gerektirmez ve tarayıcıdan ya da curl ile çağrılabilir.
GET https://funapi.dev/api/football/v1/standings — League table — cacheable (ETag / If-None-Match / 304) (Football API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/bank/v1/exchange-rates — Exchange rates (cacheable, ETag + If-None-Match → 304) (Bank API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/fiba/v1/groups/{letter}/standings — Group table computed from finished games — cacheable (ETag / If-None-Match / 304) (FIBA World Cup API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/users/{id} — Get one user (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/posts/{id} — Get one post (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/comments/{id} — Get one comment (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/todos/{id} — Get one todo (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/products/{id} — Get one product (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/classic/v1/carts/{id} — Get one cart (ETag; If-None-Match → 304) (Classic Fake REST API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/echo/v1/etag/{etag} — Responds with your ETag; If-None-Match → 304, mismatched If-Match → 412 (HTTP Echo & Inspect API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/football-league/v1/games/{id} — One game — ETag changes when the score does; poll with If-None-Match for 304 (Pro Football League API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/basketball-league/v1/games/{id} — One game — ETag changes when the score does; poll with If-None-Match for 304 (Pro Basketball API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/baseball/v1/games/{id} — One game — ETag changes when the score does; poll with If-None-Match for 304 (Baseball Stats API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/fhir/r4/Patient/{id} — Read a patient (ETag W/"versionId"); deleted → 410 (FHIR R4 Health Records API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/delivery/v1/orders/{id} — Order status — ETag changes on every transition; poll with If-None-Match (Food Delivery API) Bu uç noktayı aç ve çalıştırTüm HTTP durum kodları · 55 mock REST API’nin tamamı · Başlangıç rehberi
Son güncelleme