0

I'm doing some things with a facebook widget. They cache the css files, and I'm trying to override the cache.
http://wiki.developers.facebook.com/index.php/Fb:fan

The instructions say:

Note: To provide you with better performance, we cache your stylesheet. If you update your stylesheet, you should use a cachebreaker in the URL to the stylesheet, typically by appending a version number to the .CSS file extension, as in http://www.example.com/my.css?2.

So I'm trying to understand: if I have the stylesheet as /test.css do I keep that file named that, but only but the "?#" at the end of the link to the stylesheet, but not actually change the stylesheet name?

1 Answer 1

4

Right, caching is performed by facebook checking to see if it has the requested file available (versus your remote copy). By appending the ?xxx to the link href tag, you are essentially breaking that check and telling it that the file will be different than when requested before.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.