Jump to content


Photo
- - - - -
Open

Specify A Cache Validator



Best Answer Simon_P , 16 November 2012 - 04:43 PM

You cannot cache google fonts, they are an external resource, all external css/js/images whater you have NO control over, unless you are the admin for that server as well.

As for serving from a cookieless domain, that means serve your static files from a different server/domain that is not running php, so no sessions/cookies are set. Most CDN's are like that anyway. Go to the full post


  • Please log in to reply
3 replies to this topic

#1 jankowalski

jankowalski

    Advocate

  • Members
  • 346 posts
  • Country: Country Flag

Posted 16 November 2012 - 04:29 PM

how can i Specify a cache validator

i m getting this error testing my site at

Please Login or Register to see this Hidden Content



The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources:

Please Login or Register to see this Hidden Content



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 November 2012 - 04:37 PM

Well, you should contact google and ask them to provide a Last Modified header for their fonts. Its an external resourse so there is nothing you can do.

#3 jankowalski

jankowalski

    Advocate

  • Members
  • 346 posts
  • Country: Country Flag

Posted 16 November 2012 - 04:39 PM

i see... do you think i could use plugin for wordpress to cache it?
also, do you recomend to Serve static content from a cookieless domain?

#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 November 2012 - 04:43 PM   Best Answer

You cannot cache google fonts, they are an external resource, all external css/js/images whater you have NO control over, unless you are the admin for that server as well.

As for serving from a cookieless domain, that means serve your static files from a different server/domain that is not running php, so no sessions/cookies are set. Most CDN's are like that anyway.