@@ -67,10 +67,10 @@ public function switchAction($action, $httpVars, $filesVars)
67
67
68
68
header ("Content-Type: " .AJXP_Utils::getImageMimeType (basename ($ cId ))."; name= \"" .basename ($ cId )."\"" );
69
69
header ("Content-Length: " .strlen ($ data ));
70
- header ('Cache-Control: public ' );
71
- header ("Pragma: " );
70
+ header ('Cache-Control: no-cache ' );
71
+ header ("Pragma: no-cache " );
72
72
header ("Last-Modified: " . gmdate ("D, d M Y H:i:s " , time ()-10000 ) . " GMT " );
73
- header ("Expires: " . gmdate ("D, d M Y H:i:s " , time ()+ 5 * 24 * 3600 ) . " GMT " );
73
+ header ("Expires: " . gmdate ("D, d M Y H:i:s " , time ()) . " GMT " );
74
74
print ($ data );
75
75
76
76
} else {
@@ -83,10 +83,10 @@ public function switchAction($action, $httpVars, $filesVars)
83
83
$ filesize = $ stat ["size " ];
84
84
header ("Content-Type: " .AJXP_Utils::getImageMimeType (basename ($ file ))."; name= \"" .basename ($ file )."\"" );
85
85
header ("Content-Length: " .$ filesize );
86
- header ('Cache-Control: public ' );
87
- header ("Pragma: " );
86
+ header ('Cache-Control: no-cache ' );
87
+ header ("Pragma: no-cache " );
88
88
header ("Last-Modified: " . gmdate ("D, d M Y H:i:s " , time ()-10000 ) . " GMT " );
89
- header ("Expires: " . gmdate ("D, d M Y H:i:s " , time ()+ 5 * 24 * 3600 ) . " GMT " );
89
+ header ("Expires: " . gmdate ("D, d M Y H:i:s " , time ()) . " GMT " );
90
90
91
91
$ class = $ streamData ["classname " ];
92
92
$ stream = fopen ("php://output " , "a " );
0 commit comments