Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 583787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:49:46+00:00 2026-05-13T14:49:46+00:00

I’m currently building up a PHP script that will answer HTTP 304 Not Modified

  • 0

I’m currently building up a PHP script that will answer HTTP “304 Not Modified” when required.

(See question #2086712 for what I do so far).

Currently I answer to the following:

  • If-Modified-Since
  • If-None-Match

But I found out that 3 more headers can trigger a “conditional GET” (See http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3):

  • If-Match
  • If-Unmodified-Since
  • If-Range

The last 2 seems irrevelent to my caching system (they seem to be used when resuming “big” downloads) but I haven’t found if “If-Match” could be of use in my system.

Does “If-Match” is used in proxies or Web browser for “regular” page content? How “If-Match” is different than “If-None-Match”?

Should I support those 3 or just some of them? Any help welcome!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:49:47+00:00Added an answer on May 13, 2026 at 2:49 pm

    If-Match

    The server MUST return a 412 (Precondition Failed) response, if:

    • none of the entity tags match,
    • or "*" is given and no current entity exists

    If-Match should be ignored, if:

    • any of the entity tags match
    • or if the request results in anything other than a 2xx or 412 status (without If-Match)
    • or if "*" is given and any current entity exists for the resource

    Conclusion on if-match:

    • The meaning of "If-Match: *" is that the method should be performed if the representation selected by the origin server … exists, and must not be performed if the representation does not exist.

    If-Match in RFC2616

    If-Unmodified-Since

    The server MUST return a 412 (Precondition Failed) response, if:

    • the requested variant has been modified since the specified time

    If-Unmodified-Since should be ignored, if

    • the requested resource has not been modified since the time specified in this field
    • or the request normally (i.e., without the If-Unmodified-Since header) would result in anything other than a 2xx or 412 status
    • or the specified date is invalid

    If-Unmodified-Since in RFC2616

    If-Range

    Informally, its meaning is ‘if the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity’

    Preconditions:

    • The If-Range header SHOULD only be used together with a Range header, and MUST be ignored if the request does not include a Range header, or if the server does not support the sub-range operation.

    Server SHOULD provide 206 (Partial content) response, if If-Range header matches the current entity tag for the entity. Otherwise, server SHOULD return the entire entity using a 200 (OK) response.

    If-Range in RFC2616

    Undefined results

    Having the following combination of headers leads to an undefined result:

    • If-Modified-Since and If-Match
    • If-Modified-Since and If-Unmodified-Since
    • If-None-Match and If-Match
    • If-None-Match and If-Unmodified-Since

    These rules have been decomposed from the following ones (can be found in RFC2616):

    • If-Match and ( If-None-Match or If-Modified-Since )
    • If-Modified-Since and ( If-Match or If-Unmodified-Since )
    • If-None-Match and ( If-Match or If-Unmodified-Since )
    • If-Unmodified-Since and ( If-None-Match or If-Modified-Since )

    A more recent RFC 7232 superseded 2616.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 374k
  • Answers 374k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This was an undocumented feature in VS 2005/2008. I was… May 14, 2026 at 7:51 pm
  • Editorial Team
    Editorial Team added an answer Request the thumbnail from YouTube on the server side, save… May 14, 2026 at 7:51 pm
  • Editorial Team
    Editorial Team added an answer The error you are seeing is likely happening in the… May 14, 2026 at 7:51 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.