Solved

Does Facebook cache server-side files in Facebok apps?

Posted on 2012-03-13
5
586 Views
Last Modified: 2012-06-21
We've fixed a bug in the registration process in our our FB app and it's working fine and we can see that people can register.

But why do we still get SOME complaints from other users that they can’t register? Is this due to Facebook caching our old server-side files
0
Comment
Question by:melwong
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Mike D
ID: 37719190
Hi Mel,

yes, Facebook caches server side files: images, js and CSS files are often the culprits. One way to ensure the latest version is in their cache is to add a query string to the files you want updated, ie. change

...src=my_script.js...
to
...src=my_script.js?x=123...

This technique is called 'cache-busting' and is often necessary during development.  If you're using a scripting language you can add some random string (like time() in php) to the query like
<?
$cache_bust = time();
?>
...src=my_script.js?x=<?= $cache_buster ?>
This way you can easily switch it off when everything is ok.

Another thing to check is it might be a browser issue.
And last, did you set up everything for https?

Hope this helps

JD
0
 

Author Comment

by:melwong
ID: 37719321
actually I'm referring to server side files like PHP, or htaccess. Images, Css are client side
0
 
LVL 6

Expert Comment

by:Mike D
ID: 37721474
Images, css are client side
I think you're mixing something up there...
And if anyone can access your htaccess file from the web you have a real big security problem!

You have to supply more information if you seriously want a solution:
How does the registration process work?
What does it mean when a user says he can't register?
Any error message?
What type of browser is he using?
A link to your app would make sense...

JD
0
 

Author Comment

by:melwong
ID: 37722777
Sorry, I'm referring to PHP files.
0
 
LVL 6

Accepted Solution

by:
Mike D earned 150 total points
ID: 37723805
Then the answer is 'no', facebook does not cache your php files.

JD
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Facebook, email, text receiving unwanted messages 7 52
hasing a url 16 27
how to use 2 SELECT statements with prepared statements 19 30
Cookie not unsetting 7 19
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question