# HTTP caching

- Thread: https://externals.io/message/28790
- Original archive: https://news-web.php.net/php.internals/28790
- Started by Bart de Boer on 2007-04-13T14:37:05+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28790 — Bart de Boer — 2007-04-13T14:37:05+00:00

URL: https://externals.io/message/28790#28790

Hello all,

I couldn't find if this is already implemented somehow. But I thought it 
would be a nice idea to let the PHP http streams understand HTTP 
caching. This could come in particularly handy when PHP is used to 
consume REST-based webservices. (Perhaps in the future also for SOAP 1.2 
GET requests.) People could simply take control of caching by setting 
the Expires header of their service.

Cheers,

Bart

---

## #28912 — Unknown W. Brackets — 2007-04-18T01:15:45+00:00

URL: https://externals.io/message/28790#28912 · In reply to: #28790

For what it's worth, this would be very nice.  I always use my own 
custom HTTP handling for this reason (and related reasons, such as 
keep-alive.)

However, it's also very complicated; the cached data has to be managed, 
has to be stored somewhere... and at what point do you add cookie 
management?

-[Unknown]


-------- Original Message --------

> Hello all,
> 
> I couldn't find if this is already implemented somehow. But I thought it 
> would be a nice idea to let the PHP http streams understand HTTP 
> caching. This could come in particularly handy when PHP is used to 
> consume REST-based webservices. (Perhaps in the future also for SOAP 1.2 
> GET requests.) People could simply take control of caching by setting 
> the Expires header of their service.
> 
> Cheers,
> 
> Bart

---

## #28922 — Bart de Boer — 2007-04-19T05:58:36+00:00

URL: https://externals.io/message/28790#28922 · In reply to: #28790

Anyone care to comment?


Bart de Boer wrote:

> Hello all,
> 
> I couldn't find if this is already implemented somehow. But I thought it 
> would be a nice idea to let the PHP http streams understand HTTP 
> caching. This could come in particularly handy when PHP is used to 
> consume REST-based webservices. (Perhaps in the future also for SOAP 1.2 
> GET requests.) People could simply take control of caching by setting 
> the Expires header of their service.
> 
> Cheers,
> 
> Bart
