<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">From what you describe I do think the
      suggested nginx config is enough...<br>
      <br>
      However maybe you're looking for something like this:<br>
      <br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/14631044/expires-header-based-on-dynamic-content-type-in-nginx">http://stackoverflow.com/questions/14631044/expires-header-based-on-dynamic-content-type-in-nginx</a><br>
      <br>
      Not really sure if it suits you're needs, but It seems this is
      what you're looking for.<br>
      <br>
      You can also find more info on mime type here:
      <a class="moz-txt-link-freetext" href="http://wiki.nginx.org/HttpCoreModule#types">http://wiki.nginx.org/HttpCoreModule#types</a><br>
      <br>
      Hope this helps,<br>
      <br>
      Mike<br>
      <br>
      <br>
      On 06/14/13 03:12, Silver Moon wrote:<br>
    </div>
    <blockquote
cite="mid:CAKTfiTzB_t-_9-Tstxey0fif3YjNKueZ3DkZrr008ANzK9z54A@mail.gmail.com"
      type="cite">yes, i could send out headers from php itself
      <div>but mime based header generation in the webserver itself
        would make things easier.</div>
      <div><br>
      </div>
      <div>so finally it is impossible to achieve that ?<br>
        <br>
        <div class="gmail_quote">
          On Fri, Jun 14, 2013 at 8:35 AM, Host DL <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:hostdl@gmail.com"
              target="_blank">hostdl@gmail.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_default"
                style="font-family:tahoma,sans-serif">If you handle your
                js, css and images by php scripts you can use header
                function to send out Expires and Cache-Control
                directives</div>
              <div class="gmail_default"
                style="font-family:tahoma,sans-serif">
                <br>
              </div>
              <div class="gmail_default"
                style="font-family:tahoma,sans-serif">example:</div>
              <div class="gmail_default"
                style="font-family:tahoma,sans-serif"><br>
              </div>
              <div class="gmail_default">
                <div class="gmail_default"><font face="tahoma,
                    sans-serif"><?php</font></div>
                <div class="gmail_default"><font face="tahoma,
                    sans-serif">header("Cache-Control: no-cache,
                    must-revalidate"); // HTTP/1.1</font></div>
                <div class="gmail_default"><font face="tahoma,
                    sans-serif">header("Expires: Sat, 26 Jul 1997
                    05:00:00 GMT"); // Date in the past</font></div>
                <div class="gmail_default"><font face="tahoma,
                    sans-serif">?></font></div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            nginx mailing list<br>
            <a moz-do-not-send="true" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
            <a moz-do-not-send="true"
              href="http://mailman.nginx.org/mailman/listinfo/nginx"
              target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        Silver<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
    </blockquote>
    <br>
  </body>
</html>