Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 16571 программист и 1767 роботов. Сейчас ищут 1667 программистов ...

HTTP_Download::setCacheControl

Вернуться к: HTTP_Download

HTTP_Download::setCacheControl

HTTP_Download::setCacheControl() – Control cache privacy and validity.

Synopsis

void HTTP_Download::setCacheControl ( string $cache = "public" , int $maxage = 0 )

Define the contents of the Cache-Control header.

If set to set to "public", proxies are adviced to cache the response, if set to "private", proxies are adviced to do not.

The maxage paramter controls the amount of seconds an entity is suggested to be cached. Many user agents won't even send a request for subsequent requests to the same resource within the specified time frame.

Parameter

  • string $cache = "public" - whether to allow proxy caching

  • int $maxage = 0 - maximum age of the cached entity

Note

This function can not be called statically.



Вернуться к: HTTP_Download

© 2025 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware