SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question triggering 'if-modified-since' over https

    Hi,

    I have a php-website with sessions & https. I want the browser to add a 'if-modified-since' header to the request as to be able to respond with a 304.

    I have this working over http (NO S) but over httpS the browser (both firefox & chrome) do not send the header with the request.

    How can I trigger the browser to include the if-modified over httpS?

    BTW caching of *static* content over httpS is working fine, same website, same headers.

    My current *response* headers are:

    Cache-Control:max-age=310000000
    Connection:Keep-Alive
    Content-Encoding:gzip
    Content-Length:1106
    Content-Type:text/html; charset=utf-8
    Date:Sun, 10 Mar 2013 09:47:34 GMT
    ETag:dummy
    Expires:Fri, 08 Mar 2014 15:40:16 GMT
    Keep-Alive:timeout=5, max=93
    Last-modified:Fri, 08 Mar 2013 15:40:16 GMT
    Server:Apache/2.2.22 (Ubuntu)
    Vary:Accept-Encoding
    X-Powered-By:PHP/5.4.6-1ubuntu1.1

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    The code for this?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •