Commit 240f50b
ws: Set package cache headers
When a file is served from packages use a private shortish
cache that vary's on cookie, unless the file was
requested by hash, in which case we set a long public cache.
Closes cockpit-project#4064
Reviewed-by: Stef Walter <[email protected]>1 parent d7b912f commit 240f50b
File tree
3 files changed
+18
-20
lines changed- src
- bridge
- ws
3 files changed
+18
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | 643 | | |
656 | 644 | | |
657 | 645 | | |
| |||
669 | 657 | | |
670 | 658 | | |
671 | 659 | | |
672 | | - | |
673 | 660 | | |
674 | 661 | | |
675 | 662 | | |
| |||
691 | 678 | | |
692 | 679 | | |
693 | 680 | | |
694 | | - | |
695 | 681 | | |
696 | 682 | | |
697 | 683 | | |
| |||
738 | 724 | | |
739 | 725 | | |
740 | 726 | | |
741 | | - | |
742 | | - | |
743 | 727 | | |
744 | 728 | | |
745 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
488 | 489 | | |
| 490 | + | |
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| |||
514 | 516 | | |
515 | 517 | | |
516 | 518 | | |
| 519 | + | |
| 520 | + | |
517 | 521 | | |
518 | | - | |
519 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
520 | 525 | | |
521 | 526 | | |
522 | 527 | | |
| |||
540 | 545 | | |
541 | 546 | | |
542 | 547 | | |
| 548 | + | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
331 | 333 | | |
332 | 334 | | |
333 | 335 | | |
334 | | - | |
335 | 336 | | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
| |||
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
| 523 | + | |
| 524 | + | |
521 | 525 | | |
522 | 526 | | |
523 | 527 | | |
| |||
557 | 561 | | |
558 | 562 | | |
559 | 563 | | |
| 564 | + | |
| 565 | + | |
560 | 566 | | |
561 | 567 | | |
562 | 568 | | |
| |||
595 | 601 | | |
596 | 602 | | |
597 | 603 | | |
| 604 | + | |
| 605 | + | |
598 | 606 | | |
599 | 607 | | |
600 | 608 | | |
601 | 609 | | |
602 | | - | |
| 610 | + | |
603 | 611 | | |
604 | 612 | | |
605 | 613 | | |
| |||
0 commit comments