Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
a9f916be
Commit
a9f916be
authored
3 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
re meta#343 query-parameter for å omgå dloudfront-cache
parent
3a980693
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aws/beta.ordbok.uib.no_stack.yaml
+1
-0
1 addition, 0 deletions
aws/beta.ordbok.uib.no_stack.yaml
src/components/DictionaryView.vue
+5
-1
5 additions, 1 deletion
src/components/DictionaryView.vue
with
6 additions
and
1 deletion
aws/beta.ordbok.uib.no_stack.yaml
+
1
−
0
View file @
a9f916be
...
@@ -112,6 +112,7 @@ Resources:
...
@@ -112,6 +112,7 @@ Resources:
HeaderBehavior
:
whitelist
HeaderBehavior
:
whitelist
Headers
:
Headers
:
-
"
x-api-key"
-
"
x-api-key"
-
cachebuster
Distribution
:
Distribution
:
Type
:
"
AWS::CloudFront::Distribution"
Type
:
"
AWS::CloudFront::Distribution"
Properties
:
Properties
:
...
...
This diff is collapsed.
Click to expand it.
src/components/DictionaryView.vue
+
5
−
1
View file @
a9f916be
...
@@ -91,7 +91,11 @@ axios.interceptors.request.use(function (config) {
...
@@ -91,7 +91,11 @@ axios.interceptors.request.use(function (config) {
});
});
function
navigate_to_article
(
self
,
source
)
{
function
navigate_to_article
(
self
,
source
)
{
axios
.
get
(
api_endpoint
+
'
/
'
+
self
.
$route
.
params
.
lang
+
'
/article/
'
+
self
.
$route
.
params
.
id
)
let
config
=
{
headers
:
{}}
if
((
self
.
$route
.
query
.
nocache
||
''
).
toLowerCase
()
==
'
true
'
)
{
config
.
headers
.
cachebuster
=
Date
.
now
()
}
axios
.
get
(
api_endpoint
+
'
/
'
+
self
.
$route
.
params
.
lang
+
'
/article/
'
+
self
.
$route
.
params
.
id
,
config
)
.
then
(
function
(
response
){
.
then
(
function
(
response
){
self
.
article
=
Object
.
assign
(
response
.
data
,
{
'
dictionary
'
:
self
.
$route
.
params
.
lang
,
source
:
source
,
results
:
self
.
search_results
})
self
.
article
=
Object
.
assign
(
response
.
data
,
{
'
dictionary
'
:
self
.
$route
.
params
.
lang
,
source
:
source
,
results
:
self
.
search_results
})
self
.
search_results
=
[]
self
.
search_results
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment