Cookie-Free Subdomain using htacces

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

Copy this code and paste it in your HTML
  1. <IfModule mod_headers.c>
  2. <FilesMatch "\\.(js|css|jpg|png|jpeg|gif)$">
  3. RequestHeader unset Cookie
  4. Header unset Set-Cookie
  5. Header set Cache-Control "max-age=86400"
  6. </FilesMatch>
  7. </IfModule>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.