Jump to content

facebook - code. caching?


phorcon3

Recommended Posts

so, here are a few lines of code i got off the website facebook

 

http://static.ak.facebook.com/rsrc.php/73253/js/props.js?58:73253

 

and

 

http://static.ak.facebook.com/rsrc.php/58024/css/notes_html.css?58:58024

 

what are those numbers for at the end of the url? caching?

 

and what is rsrc.php? is it a caching program?

 

all i could find on rsrc is:

 

Contains a library of data used by a Mac OS application; used for developing programs for Mac OS 9 and earlier

 

dont know if that has anything to do with what facebook is doin.

Link to comment
Share on other sites

yah, well, sorry but i forgot to add the <script> & <style> tags ..which would make it a line of code, id assume

 

and thats obviously why i asked "what are those numbers for at the end of the url?"

 

but thanks neway...

 

ps, the code could be viewed under this url.. but i still cant figure out what those numbers actually do.

Link to comment
Share on other sites

A lot of sites put randoms numbers on the end of the URL to keep them from being locally cached in the browser. Each set of numbers is seens as a different page to the browser, so it won't load from cache.

 

 

that makes no sense at all because there is a simple header derivative that prevents caching of a page.

 

The numbers are most likely used to help you cache a page in a fashion similar to how GET is used to make search query results bookmarkable and indexable vs. POST based results.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.