[jira] [Created] (FLINK-20559) history-server: don't add caching headers for /jobs/overview.json

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-20559) history-server: don't add caching headers for /jobs/overview.json

Shang Yuanchun (Jira)
yazgoo created FLINK-20559:
------------------------------

             Summary: history-server: don't add caching headers for /jobs/overview.json
                 Key: FLINK-20559
                 URL: https://issues.apache.org/jira/browse/FLINK-20559
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Web Frontend
    Affects Versions: 1.11.2
            Reporter: yazgoo
         Attachments: a.diff

History server returns
Cache-Control: max-age=300 for `/jobs/overview` path.

It should not cache this because if a new jobs get added it is not up to date.

Looking at the source code, looks like an exception was added for joboverview.json, but since the file was renamed, the exception was not updated.

 

Attached is a diff of a fix for handling this: [^a.diff]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)