set header expiration date for a http request


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php // utf-8 script áéççÁ
  2. header("Expires: " . date("r", time() + ( 60 * 60 * 24 * 5 * 1 ) ) ); // 5 días
  3. header("Content-Type: application/x-javascript");
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.