Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6244317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:18:19+00:00 2026-05-24T12:18:19+00:00

I got trouble with web browsers buffering (not chaching). I call this php script

  • 0

I got trouble with web browsers buffering (not chaching).

I call this php script :

sleep(5);
echo '1st step';
echo (str_repeat(' ',256));
sleep(5);
echo '<br />';
echo '2nd step';

output buffer is disabled on php (we will confirm that later)

when calling this script with both Chromium 12 and Firefox 5
I got this result :

the ‘waiting’ animated circle (the grey one) runs during ~5sec
then the ‘transferring’ animated circle (the orange one) runs during ~5sec
and finally i have the whole result displayed.

My initial goal was, as you expect, to wait 5sec, then see “1st step” displayed,
wait 5sec again and then see “2nd step” displayed.

clues

  • php or apache doesn’t buffer anything as the animated circle switch from
    ‘waiting’ to ‘recieving’ after 5sec (so the browser did recieve something
    from the “1st step” echo !)

    • I tried to set Firefox Cache size to 0 so the cache mechanism would be bypassed.. but still no working.

    • I read that some browser may wait until they recieve 256 bytes before they start display the content. That’s why i added “echo (str_repeat(‘ ‘,256))”.. but it doesn’t solve anything.

    • I also tried to set network.buffer.cache.count and network.buffer.cache.size options at 0 in firefox about:config, i don’t know if those option was rellated to my problem but it is still not working..

Any idea ?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:18:20+00:00Added an answer on May 24, 2026 at 12:18 pm

    Oh, I guess I need to make the answer an answer, not a comment, so you can accept it.

    The HTML5 charset sniffing buffer size is 512 bytes. So the response needs to either have 512 bytes of padding or set a charset (via <meta> tag or HTTP header).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why have I got trouble with charset on echo? $url = http://ru.wikipedia.org; $site=file_get_contents($url); echo
I've got some trouble with jQuery script on my Asp.net page. During first load
I'm sure this is on the web somewhere, but I'm having trouble with the
I've got trouble on how to print my hash contents. Code snippet as this,
I got some trouble with in_array() $list = array( files/ => /system/application/files/_index.php, misc/chat/ =>
I've got some trouble with displaying pdfs in IE7 (which were generated by R&OS'
i'v got a trouble, i want to use Ckeditor with my project, i have
I've got a real trouble now. I've got my win Application and a lot
Got a crash report from a beta tester and I'm having trouble identifying the
I'm having some trouble understanding a bit of code. I've got 2 classes Company

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.