Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

If-Modified-Since

Name: Anonymous 2013-07-02 5:13

GET /jp/res/11107882.json HTTP/1.1
If-Modified-Since: Tue Jul 02 2013 08:41:51 GMT+0100 (IST)
Host: api.4chan.org
Connection: keep-alive

Why am I getting a 200 response code instead of 304 when I send this request? The headers I get back have last-modified: Mon, 01 Jul 2013 17:47:08 GMT so shouldn't it be returning a 304?

Name: Anonymous 2013-07-02 5:36

Some servers ignore it and the ones that don't interpret the header differently. I think 4chan uses Nginx or something, and Nginx in its default configuration apparently only sends 304 if the last modified dates match exactly.

http://trac.nginx.org/nginx/ticket/93

Name: Anonymous 2013-07-02 5:40

You want mirron char string?
Too bad!
Here doc!

Name: Anonymous 2013-07-02 6:10

>>2
It works if I pass it the date it gave me, thanks.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-07-02 6:29

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception.

This is another one of those stupid decisions by the w3c... HTTP/1.0 came out EIGHT YEARS after the first edition of ISO 8601, and yet it only allows an awfully verbose and difficult-to-parse date format. 1.1 didn't change that. Even an epoch like If-Modified-Since: 1372756412 would've been better (if you're going to mandate GMT, what's the point of allowing a date format that could specify a timezone?)

Name: bampu pantsu 2013-07-04 21:39

bampu pantsu

Name: bampu pantsu 2013-07-04 21:47

bampu pantsu

Name: bampu pantsu 2013-07-04 21:54

bampu pantsu

Name: bampu pantsu 2013-07-04 22:00

bampu pantsu

Name: bampu pantsu 2013-07-04 22:07

bampu pantsu

Name: bampu pantsu 2013-07-04 22:14

bampu pantsu

Name: bampu pantsu 2013-07-04 22:22

bampu pantsu

Name: bampu pantsu 2013-07-04 22:28

bampu pantsu

Name: bampu pantsu 2013-07-04 22:35

bampu pantsu

Name: bampu pantsu 2013-07-04 22:42

bampu pantsu

Name: bampu pantsu 2013-07-04 22:48

bampu pantsu

Name: bampu pantsu 2013-07-04 22:57

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List