[wp-trac] Re: [WordPress Trac] #9281: use Last-Modified/If-Modified-Since

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 7 23:37:21 GMT 2009


#9281: use Last-Modified/If-Modified-Since
-----------------------------+----------------------------------------------
 Reporter:  jidanni          |       Owner:  anonymous               
     Type:  feature request  |      Status:  new                     
 Priority:  lowest           |   Milestone:  Future Release          
Component:  Optimization     |     Version:  2.7.1                   
 Severity:  trivial          |    Keywords:  dev-feedback 2nd-opinion
-----------------------------+----------------------------------------------
Changes (by DD32):

  * type:  enhancement => feature request


Comment:

 > A banner ad rotation shouldn't change a Last-Modified date.

 Correct

 > But a site notice added to each page might.

 Correct.

 How is WordPress supposed to know the difference?

 Simple, It doesn't, Its content from the theme or a plugin that is
 changing, it *doesnt* know if the content has changed, It cant keep a copy
 of the output and compare it later, That wouldnt work.

 The difference with feeds is that once they've got the feed, they don't
 want it again, theres no dynamic content in the feed for them, If an ad is
 inserted at the end of each post, they should get the ad that they
 originally got, not the latest one upon a refresh (Which mind you, would
 also cause duplicate items in their reader.. but thats a different story).

 In my opinion: If you want to use 304's for your main page, Then use a
 plugin, Or a Caching plugin which ends up removing any dynamic abilities
 WP has to start with, which means it -can- then use static content, which
 means it does know if it was modified.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9281#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list