Google Cache-control

I'm trying to optimize the page maintenance time in a Google app, but I'm struggling to get the effect I want.

in my app.yaml, I used the following directive:

handlers:
- url: /assets
  static_dir: assets
  expiration: 7d

under the resource folder, I have all my images, css and js. Using 7d expiration, I expected the browser to use local files in the cache and not come to my application for 7 days.

Although in the response headers for my assets I get the following:

Cache-Control:public, max-age=604800
Cache-Control:no-cache, must-revalidate

I understand that with these headers, the browser checks my application if the file has changed before the release of the cached version. (I can effectively see a bunch of 304 corresponding to my files in the resource folder, both for updating and for simple page loading).

Google , 7d ( ), ? (.. "no-cache" )

P.S. PageSpeed ​​ . html.

+5
3

? AppEngine , . .

+2

, GAE :

Cache-Control: public, max-age = 600

: 7d , GAE 1 Cache-Control?

0

, :

  • Ctrl , 200.
  • ( , F5), 304s .
  • enter , , , .
0

All Articles