Jump to content

gzip


dreamwest

Recommended Posts

Ive gzipped some static html files and want to send it to the browser but not sure how to approach it

 

So i have :

 

http://site.com/cache/file.html (14gb)

http://site.com/cache/file.html.gz (1kb)

 

I did this but do i still need a header??

<?php

if(file_exists('cache/file.html')){

@readfile("cache/file.html");

}

?>

Link to comment
https://forums.phpfreaks.com/topic/217631-gzip/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.