?
Solved

Does Facebook cache server-side files in Facebok apps?

Posted on 2012-03-13
5
Medium Priority
?
611 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 total points
ID: 37723805
Then the answer is 'no', facebook does not cache your php files.

JD
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

801 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