How to unset Cookies on static PHP generated CSS / JS files? -


testing site saw cookie score of 81/100 following comment:

failed (static object 1 cookies - 36 bytes) - all.css cookie:phpsessid=3ge12i80ghj5gbb2cs41tr7qj5
failed (static object 1 cookies - 36 bytes) - all.js cookie:phpsessid=3ge12i80ghj5gbb2cs41tr7qj5
0.2 kb total in outbound cookies - potential savings = 0.2 kb

both files php generated files, combine many other css / js files one.

what should unset cookie these statis objects?
there php code can add next headers(); can unset cookie on files?

suggestions = answers = appreciated!

the phpsessid going sent browser every request current domain. doesn't matter file type being requested (.html, .php, .js, .css, etc.). way see using "live http headers" add-on firefox. can see being send each request.

to prevent phpsessid being sent, can serve these files different domain or possibly sub-domain. ideal solution use cdn. however, not worry browser sending phpsessid these files.

just out of curiosity, tool using test site?


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -