If PHP sends two headers, which will be effective? -


if have 2 headers like:

header("cache-control: public"); header("cache-control: private"); 

which effective (first or last)?

on script second header() used:

<?php     header('location: http://google.de');     header('location: http://stackoverflow.com'); 

on script second header() used:

<?php     header("cache-control: public");     header("cache-control: private"); 

if header defined multiple times, last 1 used!


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -