문제

I would like to follow one of Page Speed's recommendation: Serve static content from a cookieless domain. So I need to move the style.css file away from the default template folder and put it in my cookieless domain.

How do I notice wordpress for this change?

Thanks.

도움이 되었습니까?

해결책

Style.css is ultimately called in the header file of a wordpress template. Simply changing the location call in your templates header to the one where your new styles.css file is located should do the trick.

다른 팁

OR you could leave everything where it is and set up a sub-domain (say http://static.example.com) and using CNAME in your DNS have that point to your www/root so that any existing file path can be called using that new sub-domain. As long as none of the resource using that sub-domain set cookies then your are achieving the same effect of using a separate (cookie less) domain. See http://www.ravelrumba.com/blog/static-cookieless-domain/ for a full run down.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top