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


Groups > comp.lang.javascript > #28316

How to Cache a page for 24 hours in Javascript

Newsgroups comp.lang.javascript
Date 2015-07-07 03:42 -0700
Message-ID <d4eabb49-1e6f-4341-8785-fa7d7450951e@googlegroups.com> (permalink)
Subject How to Cache a page for 24 hours in Javascript
From Luis <roy1mos@gmail.com>

Show all headers | View raw


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.

Back to comp.lang.javascript | Previous | Next — 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