Created
January 28, 2018 15:53
-
-
Save waqashassan98/0029495b57a64206673b64d3761d1794 to your computer and use it in GitHub Desktop.
Headers for creating Dynamic CSS using PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$expires = 5*60*60*24; // how long to cache in secs.. | |
header("Pragma: public"); | |
header("Cache-Control: maxage=".$expires); | |
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT'); | |
header('Content-type: text/css'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment