You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Christoph Straßer (Jira)" <de...@myfaces.apache.org> on 2020/12/08 17:09:00 UTC
[jira] [Commented] (MYFACES-4371) Resources: set
cache-control-header instead of expires-header
[ https://issues.apache.org/jira/browse/MYFACES-4371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246001#comment-17246001 ]
Christoph Straßer commented on MYFACES-4371:
--------------------------------------------
Mojarra-PR: [#4800: Resources: set cache-control-header instead of expires-header (JSF 4.0) by christophs78 · Pull Request #4817 · eclipse-ee4j/mojarra (github.com)|https://github.com/eclipse-ee4j/mojarra/pull/4817]
> Resources: set cache-control-header instead of expires-header
> -------------------------------------------------------------
>
> Key: MYFACES-4371
> URL: https://issues.apache.org/jira/browse/MYFACES-4371
> Project: MyFaces Core
> Issue Type: Wish
> Reporter: Christoph Straßer
> Priority: Trivial
>
> [https://github.com/apache/myfaces/blob/master/impl/src/main/java/org/apache/myfaces/resource/ResourceImpl.java#L208] currently set´s expires-header.
> IMO it´s today state-of-the-art to set {{cache-control: max-age=XXX}} instead of {{expires}} for resources which should be cached. And set {{cache-control: no-cache}} for resources which should not be cached.
> Details: [https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Cache-Control]
> This would also simplify code a bit.
> Also opened a mojarra-issue: https://github.com/eclipse-ee4j/mojarra/issues/4800
--
This message was sent by Atlassian Jira
(v8.3.4#803005)