dreamwest Posted November 3, 2010 Share Posted November 3, 2010 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 More sharing options...
Festy Posted November 3, 2010 Share Posted November 3, 2010 No you don't need a header in this case. Link to comment https://forums.phpfreaks.com/topic/217631-gzip/#findComment-1129830 Share on other sites More sharing options...
dreamwest Posted November 3, 2010 Author Share Posted November 3, 2010 Usually if you go to a url like: http://site.com/cache/file.html The browser will detect the gzip file from htaccess settings, but its not accepting the gzip file in this case ..pity cause its a huge saver Link to comment https://forums.phpfreaks.com/topic/217631-gzip/#findComment-1129836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.