Connecting Tech Pros Worldwide Forums | Help | Site Map

Serving up compress pages without access to server side tools?

Alan
Guest
 
Posts: n/a
#1: Jul 23 '05
I have a website with no ssi, php, cgi...nothing. Plain old flat pages are
all it serves.
I need to upload a list to it - a big, plain text list in html. A 2Mb list!

With gzip compress, it comes down to 91Kb, much more modem-friendly!

After about 30 minutes of googling, I haven't yet found a way of serving
this page up like this.
I can't send headers as no php or .htaccess is allowed. Any ideas?

And please don't suggest I move to a "proper" web host! It's for a friend
with a one-off need for a small website for about 2 months, and the freebie
10Mb is fine :)



Els
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Serving up compress pages without access to server side tools?


Alan wrote:
[color=blue]
> I have a website with no ssi, php, cgi...nothing. Plain old flat pages are
> all it serves.
> I need to upload a list to it - a big, plain text list in html. A 2Mb list!
>
> With gzip compress, it comes down to 91Kb, much more modem-friendly!
>
> After about 30 minutes of googling, I haven't yet found a way of serving
> this page up like this.
> I can't send headers as no php or .htaccess is allowed. Any ideas?
>
> And please don't suggest I move to a "proper" web host! It's for a friend
> with a one-off need for a small website for about 2 months, and the freebie
> 10Mb is fine :)[/color]

Not sure if I understand things correctly, but can't you
serve a regular html page in which you link (a href=) to the
gzip file? I thought that way it automatically would
download to the user's pc, where some unzipper will take
care of it.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Klaus Johannes Rusch
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Serving up compress pages without access to server side tools?


Alan wrote:
[color=blue]
> I have a website with no ssi, php, cgi...nothing. Plain old flat pages are
> all it serves.
> I need to upload a list to it - a big, plain text list in html. A 2Mb list!
>
> With gzip compress, it comes down to 91Kb, much more modem-friendly!
>
> After about 30 minutes of googling, I haven't yet found a way of serving
> this page up like this.
> I can't send headers as no php or .htaccess is allowed. Any ideas?[/color]

If all visitors to the site have Javascript enabled, you could use
client-side compression:

http://www.dithered.com/javascript/c...ion/index.html

Alternatively, provide two copies of file for download, one with an
..html.gz extension (assuming the server is properly configured to
recognize .gz) and one with an .html extension, and let visitors choose
which version they would like to get.

--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Alan
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Serving up compress pages without access to server side tools?


"Klaus Johannes Rusch" <KlausRusch@atmedia.net> wrote in message
news:2io207Fpj1u6U1@uni-berlin.de...[color=blue]
> Alan wrote:
>[color=green]
> > I have a website with no ssi, php, cgi...nothing. Plain old flat pages[/color][/color]
are[color=blue][color=green]
> > all it serves.
> > I need to upload a list to it - a big, plain text list in html. A 2Mb[/color][/color]
list![color=blue][color=green]
> >
> > With gzip compress, it comes down to 91Kb, much more modem-friendly!
> >
> > After about 30 minutes of googling, I haven't yet found a way of serving
> > this page up like this.
> > I can't send headers as no php or .htaccess is allowed. Any ideas?[/color]
>
> If all visitors to the site have Javascript enabled, you could use
> client-side compression:
>
> http://www.dithered.com/javascript/c...ion/index.html
>
> Alternatively, provide two copies of file for download, one with an
> .html.gz extension (assuming the server is properly configured to
> recognize .gz) and one with an .html extension, and let visitors choose
> which version they would like to get.[/color]

Thanks for all the replies - this last one looks very cunning - but is very
heavy on the old cpu!

We got it sorted in the end - just stripping out all the tags and stuff.
Thanks for the offer of hosting the files etc.


Closed Thread


Similar JavaScript / Ajax / DHTML bytes