aqila-cache 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13d178c65d3d062a0ef64fbd97157dc9bc3bc91efbf3726a5f3fce5ba7887c06
4
- data.tar.gz: bb11f74c1e4ca565779cf82ca86acfa8f1649d143e62933532ddf402bf6362f2
3
+ metadata.gz: ae8248315df270dd5dcfcb87bf2f414dc15583c4de99de0031a7aeae91c7c0fb
4
+ data.tar.gz: a4b4450f868b0539ca2da71a22a069249af66ea78fa7fe1119fd9d56b1c0aa52
5
5
  SHA512:
6
- metadata.gz: a88ac3a544a96e45952d4ef13820015bd2d6ae0b995779b0ef399cbd9c3578cb0d66a79f614df5c3ec9835bb0121d0094e9204e670c3c53765564a6e8eed6b50
7
- data.tar.gz: 26f21db4437a5ff008541e4bbcf6c7db912094544ad58c9f94033a00cc993a1db1a39b4637c3f3ae1e5523a6db060d9861dd35e1b6bc7b7bd3d924102ebcf25e
6
+ metadata.gz: 5b79924237d840f5af0de72910ea769765008d13cce893e993a55f1824156ad8cbe5eb35684a3bab0c9c6c182448c167edbf03fe25da019580767af4fc43509c
7
+ data.tar.gz: ed773d84d147272d9858a715c78348ab198b96f5956e205073471c05fbb001e17cc0d9ce54733d9471ed1cd6d02b4a97aa3c8fd7641b92bc5f2cced0a85a375d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aqila-cache (0.1.0)
4
+ aqila-cache (0.3.0)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -98,7 +98,7 @@ GEM
98
98
  tzinfo (1.2.7)
99
99
  thread_safe (~> 0.1)
100
100
  unicode-display_width (1.7.0)
101
- zeitwerk (2.3.0)
101
+ zeitwerk (2.3.1)
102
102
 
103
103
  PLATFORMS
104
104
  ruby
@@ -23,6 +23,8 @@ module Aqila
23
23
  def self.stale?(controller:)
24
24
  check_ttl
25
25
 
26
+ controller.response.headers['Cache-Control'] = 'public'
27
+
26
28
  controller.stale?(last_modified: Aqila::Cache::TableLastChange.for(model: self))
27
29
  end
28
30
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aqila
4
4
  module Cache
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aqila-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agro1 Desenvolvimento