Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am saj1th on github.
  • I am saj1th (https://keybase.io/saj1th) on keybase.
  • I have a public key whose fingerprint is A559 A1BC AB10 DB7A 0004 5F84 C94F 1629 76EC 676C

To claim this, I am signing this object:

@saj1th
saj1th / gist:5703755
Last active December 18, 2015 01:28
// From Akamai Documenation //
Make sure that your origin server is sending information that indicates the version of the objects so that the
Edge server can send a conditional GET request when those objects expire.
Also make sure that your origin server responds properly to these conditional requests, with a 304 Not Modified,
if the file has not changed since the time specified or if the ETag value specified still matches.
package week4
trait Lists[T] {
def isEmpty: Boolean
def head: T
def tail: Lists[T]
}
class Cons[T](val head: T, val tail: Lists[T]) extends Lists[T] {
def isEmpty = false