Using old push dynamicly for non static content

1 view
Skip to first unread message

benny

unread,
Nov 19, 2009, 10:19:58 AM11/19/09
to Make the Web Faster
If servers push data, to client browsers, why not stream html (push?)
to a page that is static but allow to change the code in real time
server side. Not sure if this is even feasible or I am not making
sense. I am a noob here. Thanks.
Ben

Justin Johnson

unread,
Nov 22, 2009, 2:51:15 PM11/22/09
to Make the Web Faster

yuri

unread,
Nov 22, 2009, 2:04:24 AM11/22/09
to Make the Web Faster
If u ave apache server use mod rewrite, your page is:

hppp://site[dot]com/index.php?page=news&id=1

Put in your .htaccess:

RewriteEngine On
RewriteRule ^index/([^/]+)/([^/]+).html index.php?page=$1&id=$2 [L]

Your new url is:

hppp://site[dot]com/index/news/1.html

Now set caching for 2 hours html files, in .htaccess put (for html/
htm):

<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>

p.s
sorry for english italiano :)

p.s. 2

big resource -> http://www.askapache.com/htaccess/apache-speed-cache-control.html

RockstarSEO

unread,
Nov 23, 2009, 3:06:15 AM11/23/09
to Make the Web Faster
On that front, although we all use .htaccess files technically it
would be better to NOT use .htaccess due to the security issues that
it raises allowing a client ftp account to be able to edit commands
that endup in the httpconf or whatever server side processing goes on.

QUESTION:
does the # of 301 redirects in the .htaccess file slow down the server
(if .htaccess must be processed for each request)

Any ideas of how to be better efficient with or without .htaccess?

Juhász György

unread,
Nov 23, 2009, 5:09:28 AM11/23/09
to make-the-...@googlegroups.com
s
--

You received this message because you are subscribed to the Google Groups
"Make the Web Faster" group.
To post to this group, send email to make-the-...@googlegroups.com.
To unsubscribe from this group, send email to
make-the-web-fa...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/make-the-web-faster?hl=.




__________ ESET Smart Security - V�rusdefin�ci�s adatb�zis: 4628 (20091122)
__________

Az �zenetet az ESET Smart Security ellen�rizte.

http://www.eset.hu



Juhász György

unread,
Nov 23, 2009, 5:09:17 AM11/23/09
to make-the-...@googlegroups.com
sory! ONLI on hungarian language please all !!!
----- Original Message -----
From: "RockstarSEO" <aaron...@gmail.com>
To: "Make the Web Faster" <make-the-...@googlegroups.com>
Sent: Monday, November 23, 2009 9:06 AM
Subject: [make-the-web-faster:207] Re: Using old push dynamicly for non
static content


T73 Net

unread,
Dec 2, 2009, 9:44:36 PM12/2/09
to Make the Web Faster
Another option is the APE-Project: http://www.ape-project.org/. It's a
C++ implementation of the Push idea you're looking for.
It also implements Server Side Javascript as hooks for various
implementations, which means it's relatively easy to implement new
uses.
Reply all
Reply to author
Forward
0 new messages