Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28317

Re: How to Cache a page for 24 hours in Javascript

Newsgroups comp.lang.javascript
Subject Re: How to Cache a page for 24 hours in Javascript
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <d4eabb49-1e6f-4341-8785-fa7d7450951e@googlegroups.com>
Date 2015-07-07 13:17 +0200
Message-ID <XnsA4D0873B29BADeejj99@194.109.6.166> (permalink)

Show all headers | View raw


On 07 Jul 2015, you wrote in comp.lang.javascript:

> I need to use Javascript to implement caching.

Why Javascript? 
You mean caching on the server?

Why "need" and not just "want"? 
Is this a school or other learning assignment?

> I am using Apache as my web server on a CentOS linux server.
> I am using PHP for dynamic content in my web pages.

So why not PHP on your server?
 
> -I need to ensure my website pages are cached for 24 hours after they
> are first  loaded. -I need to ensure my website images are cached for
> one week after they are first  loaded. -I need to ensure my website
> videos are cached for one week after they are first  loaded. 

"First loaded"?
You still mean cashed on the server?

> What is the recommended way to do this?

Whose recomendation are you referring to?
 
> Any feedback/recommendations links to best practices would be
> appreciated. 

"best" being a dirty word in Qs like these.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to Cache a page for 24 hours in Javascript Luis <roy1mos@gmail.com> - 2015-07-07 03:42 -0700
  Re: How to Cache a page for 24 hours in Javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 13:17 +0200
    Re: How to Cache a page for 24 hours in Javascript Luis <roy1mos@gmail.com> - 2015-07-07 15:44 -0700
      Re: How to Cache a page for 24 hours in Javascript "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-07-08 00:54 +0200
      Re: How to Cache a page for 24 hours in Javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 09:22 +0200
  Re: How to Cache a page for 24 hours in Javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 08:17 -0700
    Re: How to Cache a page for 24 hours in Javascript Luis <roy1mos@gmail.com> - 2015-07-07 15:46 -0700
      Re: How to Cache a page for 24 hours in Javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 19:32 -0700
      Re: How to Cache a page for 24 hours in Javascript Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-07-08 12:07 +0200
        Re: How to Cache a page for 24 hours in Javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 12:13 +0200
          Re: How to Cache a page for 24 hours in Javascript Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-07-08 15:20 +0200

csiph-web