Function __global->set_http_caching

Definitions

sources/global2.php

  • Set HTTP caching in a conclusive and simple way.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$last_modified ?TIME required parameter N/A N/A When the resource was last modified (null: dynamic non-cached request)
$public boolean False N/A N/A Whether the request is public (can be cached in public proxy caches)
$expiry_seconds TIME 604800 N/A N/A Seconds until cache expires (only applicable if $last_modified is not null)

sources/minikernel.php

  • Set HTTP caching in a conclusive and simple way.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$last_modified ?TIME required parameter N/A N/A When the resource was last modified (null: dynamic non-cached request)
$public boolean False N/A N/A Whether the request is public (can be cached in public proxy caches)
$expiry_seconds TIME 604800 N/A N/A Seconds until cache expires (only applicable if $last_modified is not null)