Re: Why isn't Cache-Control removed with remove_content_headers?
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
Bill Moseley <[email protected]> writes: > I've been setting both Cache-Control max-age and Expires. But I > noticed that remove_content_headers() only removes the > @entity_headers which only includes Expires. > > Should remove_content_headers remove both? I'm not sure. RFC 2616 section 4.5 starts out saying "There are a few header fields which have general applicability for both request and response messages, but which do not apply to the entity being transferred." and Cache-Control is one of these. This implies that remove_content_headers shouldn't touch it. Does the current behaviour create a problem in your application? --Gisle