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


Groups > comp.lang.javascript > #28319

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

Newsgroups comp.lang.javascript
Date 2015-07-07 08:17 -0700
References <d4eabb49-1e6f-4341-8785-fa7d7450951e@googlegroups.com>
Message-ID <e7fca1e7-65f4-420b-aa65-eacfc67be6dc@googlegroups.com> (permalink)
Subject Re: How to Cache a page for 24 hours in Javascript
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


On Tuesday, July 7, 2015 at 5:42:18 AM UTC-5, Luis wrote:
> I need to use Javascript to implement caching.
> I am using Apache as my web server on a CentOS linux server.
> I am using PHP for dynamic content in my web pages.
> 
> -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.
> 
> 
> What is the recommended way to do this?
> 
> Any feedback/recommendations links to best practices would be appreciated.

Just use PHP for this and set the appropriate headers.

This is off-topic in this forum.

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