logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: cookieless domain alternative: cookieless directory!
Author
skillsfactory



Joined: 27 Sep 2013
Posts: 11
Location: Italy

PostPosted: Sun 10 Nov '13 15:19    Post subject: cookieless domain alternative: cookieless directory! Reply with quote

I'm trying to follow all the guidelines of "Google Page Speed​​". The directive "Minimize request overhead" requires static content (images, js, css, etc.) on a static server (ie cookieless): https://developers.google.com/speed/docs/best-practices/request

I do not want to buy a new server and I was thinking of just setting a directory of my site without cookie with htaccess

www.mysite.com/static/.htaccess

Code:

Header unset Cookie
Header unset Set-Cookie


I do not know if it can be problematic. Looking on google it seems that no one ever has adopted this type of solution, so I think that it is incorrect. What do you think?

alternatively you could do

Code:

<FilesMatch "\.(css|js|jpg|png|gif)$">
Header unset Cookie
Header unset Set-Cookie
</FilesMatch>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 11 Nov '13 18:48    Post subject: Reply with quote

What is your actual question behind this?
Back to top
skillsfactory



Joined: 27 Sep 2013
Posts: 11
Location: Italy

PostPosted: Mon 11 Nov '13 20:56    Post subject: Reply with quote

Minimize request overhead and minimize request size
Back to top


Reply to topic   Topic: cookieless domain alternative: cookieless directory! View previous topic :: View next topic
Post new topic   Forum Index -> Apache