cache_rules 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -6
- data/README.md +2 -30
- data/cache_rules.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,29 +1,33 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
## 0.4.1 (2015-05-04)
|
4
|
+
|
5
|
+
* Update README.md
|
6
|
+
|
7
|
+
## 0.4.0 (2015-05-03)
|
4
8
|
|
5
9
|
* Modify 'revalidation' table so it doesn't check if the response is expired
|
6
10
|
* Ensure validator matching works with '*'
|
7
11
|
* Fix tests
|
8
12
|
|
9
|
-
|
13
|
+
## 0.3.0 (2015-05-03)
|
10
14
|
|
11
15
|
* Make cache rules consistent based RFC spec
|
12
16
|
* Add required 'cached' headers to tests
|
13
17
|
|
14
|
-
|
18
|
+
## 0.2.0 (2015-05-02)
|
15
19
|
|
16
20
|
* Version bump
|
17
21
|
|
18
|
-
|
22
|
+
## 0.1.20 (2015-05-01)
|
19
23
|
|
20
24
|
* Recently cached responses are cached correctly. Fixes issue #11
|
21
25
|
|
22
|
-
|
26
|
+
## 0.1.19 (2015-05-01)
|
23
27
|
|
24
28
|
* The 'max-stale' header doesn't affect 'max-age' validation
|
25
29
|
|
26
|
-
|
30
|
+
## 0.1.18 (2015-05-01)
|
27
31
|
|
28
32
|
* Ensure the 'Cache-Control: max-age' is validated
|
29
33
|
* Add regression tests
|
data/README.md
CHANGED
@@ -45,39 +45,11 @@ HTTP Caching request.
|
|
45
45
|
|
46
46
|
### Request/Cache Table
|
47
47
|
|
48
|
-
|
49
|
-
| :------------------------| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
50
|
-
| **Are the headers cached?** | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
51
|
-
| **Must revalidate?** | - | - | - | - | 0 | 0 | 0 | 1 | - |
|
52
|
-
| **No-cache or max-age reached?** | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
|
53
|
-
| **Do Etags/If-None-Match match?** | - | - | 0 | 1 | 0 | 1 | - | - | - |
|
54
|
-
| **Is the cached data expired?** | - | - | 0 | 0 | 1 | 1 | 1 | 1 | - |
|
55
|
-
| **Is there an if-only-cached header?** | 0 | 1 | - | - | - | - | - | - | - |
|
56
|
-
| **Is a stale response acceptable?** | - | - | - | - | 1 | 1 | 0 | - | - |
|
57
|
-
| |
|
58
|
-
| **Actions** | |
|
59
|
-
| **Revalidate** | | | | | | | | 1 | 1 |
|
60
|
-
| **Add Age header (regeneratte**) | | | 1 | 1 | 1 | 1 | | | |
|
61
|
-
| **Add Cache-Lookup header** | MISS | MISS | HIT | HIT | STALE | STALE | EXPIRED | | |
|
62
|
-
| **Add Warning header** | | | | | 110 | 110 | | | |
|
63
|
-
| **Return Status Code** | 307 | 504 | 200 | 304 | 200 | 304 | 504 | | |
|
64
|
-
| **Return Body** | | | cached | | stale | | | | |
|
48
|
+
![cached](https://cloud.githubusercontent.com/assets/153401/7445031/9d64eb2c-f190-11e4-8938-44a443f9bec3.png)
|
65
49
|
|
66
50
|
### Revalidation Table
|
67
51
|
|
68
|
-
|
69
|
-
| :------------------------| :---: | :---: | :---: | :---: | :---: |
|
70
|
-
| **Did we get an error or 5xx code?** | 0 | 0 | 1 | 1 | 1 |
|
71
|
-
| **Is there an if-only-cached header?** | - | - | 0 | 1 | 1 |
|
72
|
-
| **Do Etags/If-None-Match match?** | 0 | 1 | - | 0 | 1 |
|
73
|
-
| |
|
74
|
-
| **Actions** | |
|
75
|
-
| **Revalidate** | | | | | |
|
76
|
-
| **Add Age header (regeneratte**) | 1 | 1 | | 1 | 1 |
|
77
|
-
| **Add Cache-Lookup header** | REVALIDATED | REVALIDATED | EXPIRED | STALE | STALE |
|
78
|
-
| **Add Warning header** | | | | 111 | 111 |
|
79
|
-
| **Return Status Code** | 200 | 304 | 504 | 200 | 304 |
|
80
|
-
| **Return Body** | cached | | | stale | |
|
52
|
+
![revalidation](https://cloud.githubusercontent.com/assets/153401/7445040/09c747ba-f191-11e4-8b9c-a8b26709fb99.png)
|
81
53
|
|
82
54
|
## RFC compliance
|
83
55
|
|
data/cache_rules.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cache_rules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fakeweb
|